瀏覽代碼

init swrast->CurrentBuffer

tags/mesa_4_1
Brian Paul 23 年之前
父節點
當前提交
32d0d5aec4
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. 6
    1
      src/mesa/swrast/s_context.c

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

@@ -1,4 +1,4 @@
/* $Id: s_context.c,v 1.39 2002/10/04 17:37:46 brianp Exp $ */
/* $Id: s_context.c,v 1.40 2002/10/11 17:50:59 brianp Exp $ */

/*
* Mesa 3-D graphics library
@@ -507,6 +507,11 @@ _swrast_CreateContext( GLcontext *ctx )
swrast->AllowVertexFog = GL_TRUE;
swrast->AllowPixelFog = GL_TRUE;

if (ctx->Visual.doubleBufferMode)
swrast->CurrentBuffer = BACK_LEFT_BIT;
else
swrast->CurrentBuffer = FRONT_LEFT_BIT;

/* Optimized Accum buffer */
swrast->_IntegerAccumMode = GL_TRUE;
swrast->_IntegerAccumScaler = 0.0;

Loading…
取消
儲存