Get DataType from internal format if there's no hint

* dataType would never have been eGL_NONE previously, since it's either set to
  the hint or eGL_UNSIGNED_BYTE.
This commit is contained in:
baldurk
2018-08-02 11:32:43 +01:00
parent fa7fab9eb4
commit e636b610f9
+1 -1
View File
@@ -552,7 +552,7 @@ void GLResourceManager::CreateTextureImage(GLuint tex, GLenum internalFormat,
{
baseFormat = GetBaseFormat(internalFormat);
if(dataType == eGL_NONE)
if(internalFormatHint == eGL_NONE)
dataType = GetDataType(internalFormat);
}