Merge pull request #21782 from eska014/gles3-get-texture-err
Fix missing texture-download error with OpenGL ES
This commit is contained in:
commit
fc207ba18a
2 changed files with 3 additions and 3 deletions
|
@ -627,8 +627,8 @@ Ref<Image> RasterizerStorageGLES2::texture_get_data(RID p_texture, int p_layer)
|
||||||
return Ref<Image>(img);
|
return Ref<Image>(img);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
ERR_EXPLAIN("Sorry, It's not posible to obtain images back in OpenGL ES");
|
ERR_EXPLAIN("Sorry, It's not possible to obtain images back in OpenGL ES");
|
||||||
return Ref<Image>();
|
ERR_FAIL_V(Ref<Image>());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1095,7 +1095,7 @@ Ref<Image> RasterizerStorageGLES3::texture_get_data(RID p_texture, int p_layer)
|
||||||
#else
|
#else
|
||||||
|
|
||||||
ERR_EXPLAIN("Sorry, It's not possible to obtain images back in OpenGL ES");
|
ERR_EXPLAIN("Sorry, It's not possible to obtain images back in OpenGL ES");
|
||||||
return Ref<Image>();
|
ERR_FAIL_V(Ref<Image>());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue