mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
use GL_RGBA8 instead of invalid GL_RGB
This commit is contained in:
parent
38100b8ed1
commit
46043e709d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user