mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
check for null swrast (pipe work-around)
This commit is contained in:
parent
de653b4c9b
commit
9ba4311e71
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue