mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Describe ImageTexture, Image creation and usage
Ported from commit 0ee88d6705.
This commit is contained in:
@@ -248,7 +248,7 @@ Error ImageTexture::load(const String &p_path) {
|
||||
#endif
|
||||
void ImageTexture::set_data(const Ref<Image> &p_image) {
|
||||
|
||||
ERR_FAIL_COND(p_image.is_null());
|
||||
ERR_FAIL_COND_MSG(p_image.is_null(), "Invalid image");
|
||||
|
||||
VisualServer::get_singleton()->texture_set_data(texture, p_image);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user