瀏覽代碼

mesa: move _GenFlags = 0x0 to texgen loop

tags/mesa_20090313
Brian Paul 16 年之前
父節點
當前提交
c50c2e4e98
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/mesa/main/texstate.c

+ 2
- 1
src/mesa/main/texstate.c 查看文件

@@ -550,7 +550,6 @@ update_texture_state( GLcontext *ctx )

texUnit->_Current = NULL;
texUnit->_ReallyEnabled = 0x0;
texUnit->_GenFlags = 0x0;

/* Get the bitmask of texture target enables.
* enableBits will be a mask of the TEXTURE_*_BIT flags indicating
@@ -609,6 +608,8 @@ update_texture_state( GLcontext *ctx )
for (unit = 0; unit < ctx->Const.MaxTextureCoordUnits; unit++) {
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];

texUnit->_GenFlags = 0x0;

if (!(ctx->Texture._EnabledCoordUnits & (1 << unit)))
continue;


Loading…
取消
儲存