diff options
| author | Juan Linietsky | 2015-10-17 10:29:54 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-10-17 10:29:54 -0300 |
| commit | ab22203791489df160c36a29a3cd8aa8b32bec04 (patch) | |
| tree | b534f9c0f3cc4e71708deebb0107a61f1216f930 /tools/editor/plugins/editor_preview_plugins.cpp | |
| parent | b3cda43a0fb49e1cb9c8414077a23fa4b61ede38 (diff) | |
| download | godot-ab22203791489df160c36a29a3cd8aa8b32bec04.tar.gz godot-ab22203791489df160c36a29a3cd8aa8b32bec04.tar.zst godot-ab22203791489df160c36a29a3cd8aa8b32bec04.zip | |
misc cleanup
Diffstat (limited to 'tools/editor/plugins/editor_preview_plugins.cpp')
| -rw-r--r-- | tools/editor/plugins/editor_preview_plugins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/editor_preview_plugins.cpp b/tools/editor/plugins/editor_preview_plugins.cpp index a77ba9a60..c2b3ecfcd 100644 --- a/tools/editor/plugins/editor_preview_plugins.cpp +++ b/tools/editor/plugins/editor_preview_plugins.cpp @@ -25,7 +25,7 @@ Ref<Texture> EditorTexturePreviewPlugin::generate(const RES& p_from) { if (img.is_compressed()) { if (img.decompress()!=OK) return Ref<Texture>(); - } else if (img.get_format()!=Image::FORMAT_RGB && img.get_format()!=Image::FORMAT_RGB) { + } else if (img.get_format()!=Image::FORMAT_RGB && img.get_format()!=Image::FORMAT_RGBA) { img.convert(Image::FORMAT_RGBA); } |
