Skip to content

Commit

Permalink
Fix usage of OpenGL functions
Browse files Browse the repository at this point in the history
  • Loading branch information
10110111 committed Sep 18, 2022
1 parent 535e701 commit 13f055e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShowMySky/AtmosphereRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2239,7 +2239,7 @@ void AtmosphereRenderer::resizeEvent(const int width, const int height)
gl.glBindFramebuffer(GL_DRAW_FRAMEBUFFER,luminanceRadianceFBO_);

GLint origTex=-1;
glGetIntegerv(GL_TEXTURE_BINDING_2D, &origTex);
gl.glGetIntegerv(GL_TEXTURE_BINDING_2D, &origTex);
luminanceRenderTargetTexture_.bind();

gl.glTexImage2D(GL_TEXTURE_2D,0,GL_RGBA32F,width,height,0,GL_RGBA,GL_UNSIGNED_BYTE,nullptr);
Expand Down

0 comments on commit 13f055e

Please sign in to comment.