aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/sample_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-10-03 16:33:42 -0300
committerJuan Linietsky2016-10-03 21:35:16 +0200
commit22d83bc9f655d5ae7a1b49709c4c1b663725daf5 (patch)
treea817195c08d4713a70ca014a3f63f5937934fe36 /tools/editor/plugins/sample_library_editor_plugin.cpp
parent78d97b060a6873a454e710380cb9ef1bde5e4c65 (diff)
downloadgodot-22d83bc9f655d5ae7a1b49709c4c1b663725daf5.tar.gz
godot-22d83bc9f655d5ae7a1b49709c4c1b663725daf5.tar.zst
godot-22d83bc9f655d5ae7a1b49709c4c1b663725daf5.zip
Begining of GLES3 renderer:
-Most 2D drawing is implemented -Missing shaders -Missing all 3D -Editor needs to be set on update always to be used, otherwise it does not refresh -Large parts of editor not working
Diffstat (limited to 'tools/editor/plugins/sample_library_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/sample_library_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/sample_library_editor_plugin.cpp b/tools/editor/plugins/sample_library_editor_plugin.cpp
index 2a6940332..ade0c475e 100644
--- a/tools/editor/plugins/sample_library_editor_plugin.cpp
+++ b/tools/editor/plugins/sample_library_editor_plugin.cpp
@@ -236,7 +236,7 @@ void SampleLibraryEditor::_update_library() {
// Preview/edit
Ref<ImageTexture> preview( memnew( ImageTexture ));
- preview->create(128,16,Image::FORMAT_RGB);
+ preview->create(128,16,Image::FORMAT_RGB8);
SampleEditor::generate_preview_texture(smp,preview);
ti->set_cell_mode(1,TreeItem::CELL_MODE_ICON);
ti->set_selectable(1,false);