Mesa (mesa_7_7_branch): st/egl: Move declaration before code.

Vinson Lee vlee at kemper.freedesktop.org
Mon Dec 28 19:10:03 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: b4658dbf04003418a1aadc7647ce8c7211f58413
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4658dbf04003418a1aadc7647ce8c7211f58413

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Dec 28 19:09:33 2009 -0800

st/egl: Move declaration before code.

---

 src/gallium/state_trackers/egl/egl_tracker.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/egl/egl_tracker.c b/src/gallium/state_trackers/egl/egl_tracker.c
index 745803c..9345b0f 100644
--- 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);



More information about the mesa-commit mailing list