Просмотр исходного кода

Fixed FP16 textures not being created correctly

Ivan Safrin 9 лет назад
Родитель
Сommit
2bb242c2a2
1 измененных файлов с 2 добавлено и 2 удалено
  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;