summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-16 17:30:38 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-16 17:30:38 -0600
commit9ba4311e71f510797e1b446ab7dc6b6d4dc55dd5 (patch)
tree87ef7ffd1815f6c2ecbbfd557799990123b2e8c2 /src/mesa/swrast
parentde653b4c9bddcec46f3ddf411ec082dd178d7b38 (diff)
check for null swrast (pipe work-around)
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index 3956925651..f43fa61f8a 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -524,6 +524,9 @@ _swrast_update_texture_samplers(GLcontext *ctx)
SWcontext *swrast = SWRAST_CONTEXT(ctx);
GLuint u;
+ if (!swrast)
+ return; /* pipe hack */
+
for (u = 0; u < ctx->Const.MaxTextureImageUnits; u++) {
const struct gl_texture_object *tObj = ctx->Texture.Unit[u]._Current;
/* Note: If tObj is NULL, the sample function will be a simple