Commit: 1428435a9a5d0ab383b9115feb4d56c7682cc910
Author: Brecht Van Lommel
Date: Mon May 13 23:30:23 2019 +0200
Branches: master
https://developer.blender.org/rB1428435a9a5d0ab383b9115feb4d56c7682cc910
Fix compiler warning with OpenGL icon textures
===================================================================
M source/blender/editors/interface/interface_icons.c
===================================================================
diff --git a/source/blender/editors/interface/interface_icons.c
b/source/blender/editors/interface/interface_icons.c
index 09b1f48fd0a..e53e9694617 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -895,7 +895,7 @@ void UI_icons_reload_internal_textures(void)
icongltex.num_textures = need_icons_with_border ? 2 : 1;
glGenTextures(icongltex.num_textures, icongltex.id);
- if (icongltex.id) {
+ if (icongltex.id[0]) {
icongltex.w = b32buf->x;
icongltex.h = b32buf->y;
icongltex.invw = 1.0f / b32buf->x;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs