소스 검색

opengl: allow glTexStorage on Android devices.

Alex Szpakowski 3 년 전
부모
커밋
f78db47d0e
1개의 변경된 파일2개의 추가작업 그리고 11개의 파일을 삭제
  1. 2 11
      src/modules/graphics/opengl/OpenGL.cpp

+ 2 - 11
src/modules/graphics/opengl/OpenGL.cpp

@@ -1438,19 +1438,10 @@ bool OpenGL::rawTexStorage(TextureType target, int levels, PixelFormat pixelform
 
 bool OpenGL::isTexStorageSupported()
 {
-	bool supportsTexStorage = GLAD_VERSION_4_2 || GLAD_ARB_texture_storage;
-
-	// Apparently there are bugs with glTexStorage on some Android drivers. I'd
-	// rather not find out the hard way, so we'll avoid it for now...
-#ifndef LOVE_ANDROID
-	if (GLAD_ES_VERSION_3_0)
-		supportsTexStorage = true;
-#endif
-
 	if (gl.bugs.texStorageBreaksSubImage)
-		supportsTexStorage = false;
+		return false;
 
-	return supportsTexStorage;
+	return GLAD_ES_VERSION_3_0 || GLAD_VERSION_4_2 || GLAD_ARB_texture_storage;
 }
 
 bool OpenGL::isTextureTypeSupported(TextureType type) const