-/* $Id: teximage.c,v 1.81 2001/03/03 20:33:28 brianp Exp $ */
+/* $Id: teximage.c,v 1.82 2001/03/05 22:18:23 brianp Exp $ */
/*
* Mesa 3-D graphics library
struct gl_texture_object *texObj;
struct gl_texture_image *texImage;
+ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+
if (ctx->NewState & _NEW_PIXEL)
_mesa_update_state(ctx);
struct gl_texture_object *texObj;
struct gl_texture_image *texImage;
+ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+
if (ctx->NewState & _NEW_PIXEL)
_mesa_update_state(ctx);
struct gl_texture_object *texObj;
struct gl_texture_image *texImage;
+ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+
if (ctx->NewState & _NEW_PIXEL)
_mesa_update_state(ctx);
struct gl_texture_image *texImage;
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+
if (subtexture_error_check(ctx, 1, target, level, xoffset, 0, 0,
width, 1, 1, format, GL_NONE)) {
return; /* error was detected */
struct gl_texture_image *texImage;
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+
if (subtexture_error_check(ctx, 2, target, level, xoffset, yoffset, 0,
width, height, 1, format, GL_NONE)) {
return; /* error was detected */
struct gl_texture_image *texImage;
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
+
if (subtexture_error_check(ctx, 3, target, level, xoffset, yoffset, zoffset,
width, height, depth, format, GL_NONE)) {
return; /* error was detected */