Skip to content

Commit

Permalink
use GL_RGBA8 instead of invalid GL_RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
tophyr committed Aug 13, 2024
1 parent 4cba4a0 commit 52305a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/HardwareOpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ int opengl_Setup(oeApplication *app, int *width, int *height) {

dglGenRenderbuffers(1, &GOpenGLRBOColor);
dglBindRenderbuffer(GL_RENDERBUFFER, GOpenGLRBOColor);
dglRenderbufferStorage(GL_RENDERBUFFER, GL_RGB, w, h);
dglRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, w, h);
dglFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, GOpenGLRBOColor);

dglGenRenderbuffers(1, &GOpenGLRBODepth);
Expand Down

0 comments on commit 52305a9

Please sign in to comment.