瀏覽代碼

gpu: enable backface culling for indexed meshes, too.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
1ae419aaa3
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/gpu/vertexbuffer.cpp

+ 2
- 0
src/gpu/vertexbuffer.cpp 查看文件

@@ -194,6 +194,8 @@ void VertexDeclaration::DrawIndexedElements(MeshPrimitive type, int vbase,
break;
}
#else
glFrontFace(GL_CCW);
glEnable(GL_CULL_FACE);
# if defined HAVE_GL_2X && !defined __APPLE__
/* FIXME: this has nothing to do here! */
glEnable(GL_ALPHA_TEST);


Loading…
取消
儲存