opengl: culling is not necessary

This commit is contained in:
Mitchell Hashimoto
2022-11-18 10:10:08 -08:00
parent b51fe2a24a
commit f64795dc9d

View File

@ -354,11 +354,6 @@ pub fn windowInit(window: glfw.Window) !void {
const self: OpenGL = undefined; const self: OpenGL = undefined;
try self.threadEnter(window); try self.threadEnter(window);
// Culling, probably not necessary. We have to change the winding
// order since our 0,0 is top-left.
try gl.enable(gl.c.GL_CULL_FACE);
try gl.frontFace(gl.c.GL_CW);
// Blending for text // Blending for text
try gl.enable(gl.c.GL_BLEND); try gl.enable(gl.c.GL_BLEND);
try gl.blendFunc(gl.c.GL_SRC_ALPHA, gl.c.GL_ONE_MINUS_SRC_ALPHA); try gl.blendFunc(gl.c.GL_SRC_ALPHA, gl.c.GL_ONE_MINUS_SRC_ALPHA);