From 2a94896294fb664b9dc98051332d5a43a982d925 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Mon, 11 Jan 2016 13:57:07 +0100 Subject: Small fix in VoronoiSplat. * Stray OpenGL calls that did not call the gl object's methods. --- voronoisplat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'voronoisplat.cpp') diff --git a/voronoisplat.cpp b/voronoisplat.cpp index 62de98f..d064def 100644 --- a/voronoisplat.cpp +++ b/voronoisplat.cpp @@ -283,8 +283,8 @@ bool VoronoiSplatTexture::updateTexture() gl.glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, m_tex, 0); - glClearColor(0, 0, 0, 0); - glClear(GL_COLOR_BUFFER_BIT); + gl.glClearColor(0, 0, 0, 0); + gl.glClear(GL_COLOR_BUFFER_BIT); m_2ndPassVAO.bind(); gl.glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); -- cgit v1.2.3