Parcourir la source

Fix missing texture-download error with OpenGL ES

Leon Krause il y a 7 ans
Parent
commit
57eaea571a

+ 2 - 2
drivers/gles2/rasterizer_storage_gles2.cpp

@@ -506,8 +506,8 @@ Ref<Image> RasterizerStorageGLES2::texture_get_data(RID p_texture, VS::CubeMapSi
 	return Ref<Image>(img);
 #else
 
-	ERR_EXPLAIN("Sorry, It's not posible to obtain images back in OpenGL ES");
-	return Ref<Image>();
+	ERR_EXPLAIN("Sorry, It's not possible to obtain images back in OpenGL ES");
+	ERR_FAIL_V(Ref<Image>());
 #endif
 }
 

+ 1 - 1
drivers/gles3/rasterizer_storage_gles3.cpp

@@ -962,7 +962,7 @@ Ref<Image> RasterizerStorageGLES3::texture_get_data(RID p_texture, VS::CubeMapSi
 #else
 
 	ERR_EXPLAIN("Sorry, It's not possible to obtain images back in OpenGL ES");
-	return Ref<Image>();
+	ERR_FAIL_V(Ref<Image>());
 #endif
 }