mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
st/egl: Move declaration before code.
This commit is contained in:
parent
c67bb15d4e
commit
b4658dbf04
1 changed files with 2 additions and 1 deletions
|
|
@ -152,6 +152,7 @@ drm_initialize(_EGLDriver *drv, _EGLDisplay *disp, EGLint *major, EGLint *minor)
|
|||
int num_screens = 0;
|
||||
EGLint i;
|
||||
int fd;
|
||||
_EGLConfig *config;
|
||||
|
||||
dev = (struct drm_device *) calloc(1, sizeof(struct drm_device));
|
||||
if (!dev)
|
||||
|
|
@ -206,7 +207,7 @@ drm_initialize(_EGLDriver *drv, _EGLDisplay *disp, EGLint *major, EGLint *minor)
|
|||
disp->DriverData = dev;
|
||||
|
||||
/* for now we only have one config */
|
||||
_EGLConfig *config = calloc(1, sizeof(*config));
|
||||
config = calloc(1, sizeof(*config));
|
||||
memset(config, 1, sizeof(*config));
|
||||
_eglInitConfig(config, 1);
|
||||
_eglSetConfigAttrib(config, EGL_RED_SIZE, 8);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue