mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-12 22:54:04 +02:00
Update to v093r12a release.
byuu says: Not an official WIP (a WIP WIP? A meta-WIP?), just throwing in the new fullscreen code, and I noticed that OpenGL colors in 30-bit mode are all fucked up now for some strange reason. So I'm just using this snapshot to debug the issue.
This commit is contained in:
12
ruby/video/opengl/texture.hpp
Normal file
12
ruby/video/opengl/texture.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
GLuint OpenGLTexture::getFormat() const {
|
||||
if(format == GL_R32I) return GL_RED_INTEGER;
|
||||
if(format == GL_R32UI) return GL_RED_INTEGER;
|
||||
return GL_BGRA;
|
||||
}
|
||||
|
||||
GLuint OpenGLTexture::getType() const {
|
||||
if(format == GL_R32I) return GL_UNSIGNED_INT;
|
||||
if(format == GL_R32UI) return GL_UNSIGNED_INT;
|
||||
if(format == GL_RGB10_A2) return GL_UNSIGNED_INT_2_10_10_10_REV;
|
||||
return GL_UNSIGNED_INT_8_8_8_8_REV;
|
||||
}
|
Reference in New Issue
Block a user