projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de653b4
)
check for null swrast (pipe work-around)
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 23:30:38 +0000
(17:30 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 23:30:38 +0000
(17:30 -0600)
src/mesa/swrast/s_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_context.c
b/src/mesa/swrast/s_context.c
index 395692565148856f0ea49dbb429c95862509e8ef..f43fa61f8a3c329602b0e2fb5cae44a8e8462c90 100644
(file)
--- 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