Explorar el Código

Fixed FP16 textures not being created correctly

Ivan Safrin hace 9 años
padre
commit
2bb242c2a2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/core/PolyOpenGLGraphicsInterface.cpp

+ 2 - 2
src/core/PolyOpenGLGraphicsInterface.cpp

@@ -563,9 +563,9 @@ void OpenGLGraphicsInterface::createTexture(Texture *texture) {
 			break;
 		case Image::IMAGE_FP16:
 #ifdef BGRA_TEXTURE_FORMAT
-			glTextureType = GL_BGRA;
+			glTextureType = GL_BGR;
 #else
-			glTextureType = GL_RGBA;
+			glTextureType = GL_RGB;
 #endif
 #if defined(GL_RGBA16F_EXT)
 			glTextureFormat = GL_RGBA16F_EXT;