Fix missing texture-download error with OpenGL ES
This commit is contained in:
parent
68f7cf13c7
commit
57eaea571a
|
@ -506,8 +506,8 @@ Ref<Image> RasterizerStorageGLES2::texture_get_data(RID p_texture, VS::CubeMapSi
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -962,7 +962,7 @@ Ref<Image> RasterizerStorageGLES3::texture_get_data(RID p_texture, VS::CubeMapSi
|
||||||
#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…
Reference in New Issue