use GL_RGBA8 instead of invalid GL_RGB

This commit is contained in:
Chris Sarbora 2024-08-07 01:06:06 -05:00
parent 38100b8ed1
commit 46043e709d
No known key found for this signature in database

View File

@ -496,7 +496,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);