mesa: Fix SCons build.
authorVinson Lee <vlee@vmware.com>
Wed, 24 Feb 2010 22:00:30 +0000 (14:00 -0800)
committerVinson Lee <vlee@vmware.com>
Wed, 24 Feb 2010 22:00:30 +0000 (14:00 -0800)
src/mesa/main/teximage.c

index 40ebff76c6e1d9246330e0948bcf45a57ad3caac..d72e91b3a3b317e760c81afaf758614c2a382a21 100644 (file)
@@ -2452,10 +2452,10 @@ _mesa_TexImage3DEXT( GLenum target, GLint level, GLenum internalFormat,
 void GLAPIENTRY
 _mesa_EGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image)
 {
-   GET_CURRENT_CONTEXT(ctx);
-   ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
    struct gl_texture_object *texObj;
    struct gl_texture_image *texImage;
+   GET_CURRENT_CONTEXT(ctx);
+   ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
 
    if (target != GL_TEXTURE_2D) {
       _mesa_error(ctx, GL_INVALID_ENUM,