mesa: put declaration before code
authorBrian Paul <brianp@vmware.com>
Wed, 24 Feb 2010 18:57:26 +0000 (11:57 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Feb 2010 18:57:26 +0000 (11:57 -0700)
src/mesa/main/fbobject.c

index 8fbe0830c7d74821aa4a48b7575a17ac269dc349..4ce39988127f071ddf27f0dcd74b302e4428b339 100644 (file)
@@ -1012,9 +1012,9 @@ renderbuffer_storage(GLenum target, GLenum internalFormat,
 void GLAPIENTRY
 _mesa_EGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image)
 {
+   struct gl_renderbuffer *rb;
    GET_CURRENT_CONTEXT(ctx);
    ASSERT_OUTSIDE_BEGIN_END(ctx);
-   struct gl_renderbuffer *rb;
 
    if (target != GL_RENDERBUFFER) {
       _mesa_error(ctx, GL_INVALID_ENUM, "EGLImageTargetRenderbufferStorageOES");