projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c67bb15
)
st/egl: Move declaration before code.
author
Vinson Lee
<vlee@vmware.com>
Tue, 29 Dec 2009 03:09:33 +0000
(19:09 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 29 Dec 2009 03:09:33 +0000
(19:09 -0800)
src/gallium/state_trackers/egl/egl_tracker.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/egl/egl_tracker.c
b/src/gallium/state_trackers/egl/egl_tracker.c
index 745803c7eb02879c9174b61f78e690ced7964cf8..9345b0f490851a04ae3cc67fa2fc2b3244f219d1 100644
(file)
--- a/
src/gallium/state_trackers/egl/egl_tracker.c
+++ b/
src/gallium/state_trackers/egl/egl_tracker.c
@@
-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);