瀏覽代碼

swrast: Fix crash when sampling from a non-existing texture object

tags/pre-merge-glsl-compiler-1
Nicolai Haehnle 18 年之前
父節點
當前提交
8f90822b72
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      src/mesa/swrast/s_context.c

+ 1
- 3
src/mesa/swrast/s_context.c 查看文件

@@ -505,9 +505,7 @@ _swrast_update_texture_samplers(GLcontext *ctx)

for (u = 0; u < ctx->Const.MaxTextureImageUnits; u++) {
const struct gl_texture_object *tObj = ctx->Texture.Unit[u]._Current;
if (tObj)
swrast->TextureSample[u] =
_swrast_choose_texture_sample_func(ctx, tObj);
swrast->TextureSample[u] = _swrast_choose_texture_sample_func(ctx, tObj);
}
}


Loading…
取消
儲存