This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
gpu: enable backface culling for indexed meshes, too.
legacy
Sam Hocevar
sam
12 years ago
parent
444ed1df81
commit
1ae419aaa3
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/gpu/vertexbuffer.cpp
+ 2
- 0
src/gpu/vertexbuffer.cpp
View File
@@ -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);
Write
Preview
Loading…
Cancel
Save