summaryrefslogtreecommitdiff
path: root/gl_calls.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-14 12:38:08 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-14 12:38:08 -0400
commit7cfb7ce652d1c13ab72392d95dc93d967bf505fb (patch)
treeb68e0ddbcce7ee5c125c170920b815112c0c3d36 /gl_calls.cpp
parentbc5375149c0ecb416848a2d3657ea41ae97177b3 (diff)
concave masking; software anti aliasing
Diffstat (limited to 'gl_calls.cpp')
-rw-r--r--gl_calls.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gl_calls.cpp b/gl_calls.cpp
index 4474b44..68c2882 100644
--- a/gl_calls.cpp
+++ b/gl_calls.cpp
@@ -152,6 +152,8 @@ static void TestGL_InitDefaultVerts() {
1, 2, 3
};
+ glEnable(GL_MULTISAMPLE);
+
// Indices!
glGenVertexArrays(1, &DefaultVerts.VertexArrayObject);
@@ -194,7 +196,7 @@ TestGL_InitTexture(gl_effect_layer *Test, void *Data, uint16 Width, uint16 Heigh
GLuint Stencil_Renderbuffer = 0;
glGenRenderbuffers(1, &Stencil_Renderbuffer);
glBindRenderbuffer( GL_RENDERBUFFER, (GLuint)Stencil_Renderbuffer );
- glRenderbufferStorage( GL_RENDERBUFFER, GL_STENCIL_INDEX8, Width, Height );
+ glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, Width, Height );
glBindFramebuffer(GL_FRAMEBUFFER, Test->FramebufferObject);