mesa: Move is_power_of_two() function from brw_context.h to macros.h.
[mesa.git] / src / mesa / swrast / s_texcombine.c
index 297491ed5b27a605bc5690bfe26d58d90046381f..32d7c094447dbf0f939ff5c431084014e8fbaf45 100644 (file)
@@ -619,7 +619,7 @@ _swrast_texture_span( struct gl_context *ctx, SWspan *span )
        * thread.
        */
       swrast->TexelBuffer =
-        malloc(ctx->Const.FragmentProgram.MaxTextureImageUnits * maxThreads *
+        malloc(ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits * maxThreads *
                            SWRAST_MAX_WIDTH * 4 * sizeof(GLfloat));
 #ifdef _OPENMP
       } /* critical section */