mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
swrast: update program type assertion
Fixes bogus failed assertion when using NV_fragment_program, such as with demos/fplight.c Note: This is a candidate for the 7.11 branch.
This commit is contained in:
parent
af734468fe
commit
b64dc2a275
1 changed files with 3 additions and 1 deletions
|
|
@ -249,7 +249,9 @@ _swrast_update_fog_state( struct gl_context *ctx )
|
|||
SWcontext *swrast = SWRAST_CONTEXT(ctx);
|
||||
const struct gl_fragment_program *fp = ctx->FragmentProgram._Current;
|
||||
|
||||
assert((fp == NULL) || (fp->Base.Target == GL_FRAGMENT_PROGRAM_ARB));
|
||||
assert((fp == NULL) ||
|
||||
(fp->Base.Target == GL_FRAGMENT_PROGRAM_ARB) ||
|
||||
(fp->Base.Target == GL_FRAGMENT_PROGRAM_NV));
|
||||
|
||||
/* determine if fog is needed, and if so, which fog mode */
|
||||
swrast->_FogEnabled = (fp == NULL && ctx->Fog.Enabled);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue