Merge pull request #21782 from eska014/gles3-get-texture-err

Fix missing texture-download error with OpenGL ES
This commit is contained in:
Rémi Verschelde 2018-09-05 22:12:28 +02:00 committed by GitHub
commit fc207ba18a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -627,8 +627,8 @@ Ref<Image> RasterizerStorageGLES2::texture_get_data(RID p_texture, int p_layer)
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
}

View file

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