Преглед изворни кода

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…
Откажи
Сачувај