diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-11 13:57:07 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2016-01-11 13:57:07 +0100 |
commit | 2a94896294fb664b9dc98051332d5a43a982d925 (patch) | |
tree | 6e6dff0cb789362ba7b22ea790f9cf4a92c2ad9e | |
parent | c853b44dd138fd99e430580ec1bb1d0bd25293ff (diff) |
Small fix in VoronoiSplat.
* Stray OpenGL calls that did not call the gl object's methods.
-rw-r--r-- | voronoisplat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |