Workbench: Fix wrong TEXTURE_DRAWING_ENABLED check and rework drawing logic
[blender.git] / source / blender / draw / engines / workbench / workbench_private.h
index 080817c7f5349304236e7ec8fffac187c1c21a6b..534fc3b933b5359123e04806f1cc95bd24b84ba9 100644 (file)
@@ -45,7 +45,7 @@
 #define MAX_ACCUM_SHADERS (1 << 4)
 #define MAX_CAVITY_SHADERS (1 << 3)
 
-#define TEXTURE_DRAWING_ENABLED(wpd) (wpd->shading.color_type & V3D_SHADING_TEXTURE_COLOR)
+#define TEXTURE_DRAWING_ENABLED(wpd) (wpd->shading.color_type == V3D_SHADING_TEXTURE_COLOR)
 #define FLAT_ENABLED(wpd) (wpd->shading.light == V3D_LIGHTING_FLAT)
 #define STUDIOLIGHT_ENABLED(wpd) (wpd->shading.light == V3D_LIGHTING_STUDIO)
 #define MATCAP_ENABLED(wpd) (wpd->shading.light == V3D_LIGHTING_MATCAP)