Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-04-27 21:32:47 +0300
committerMike Erwin <significant.bit@gmail.com>2017-04-27 21:32:47 +0300
commite4d856e31b2719c8ab9796495c1ac7aa48870246 (patch)
treef5f62782ffa1d3ba678c912301ad402b214d40c1 /source/blender/gpu/GPU_draw.h
parent079e0b5943f379caab2c92b3aabd033da5650e3f (diff)
OpenGL: manage legacy state only when WITH_LEGACY_OPENGL=ON
- enabled lights - alpha test - texture environment - point sprites (always enabled in modern GL) Moved is_clip_plane for better struct packing, no functional change there. Part of T51164
Diffstat (limited to 'source/blender/gpu/GPU_draw.h')
-rw-r--r--source/blender/gpu/GPU_draw.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/gpu/GPU_draw.h b/source/blender/gpu/GPU_draw.h
index f6bfada7fd8..cd305d5697f 100644
--- a/source/blender/gpu/GPU_draw.h
+++ b/source/blender/gpu/GPU_draw.h
@@ -187,13 +187,10 @@ typedef struct GPUStateValues
eGPUStateMask mask;
/* GL_ENABLE_BIT */
- unsigned int is_alpha_test : 1;
unsigned int is_blend : 1;
- bool is_clip_plane[6];
unsigned int is_cull_face : 1;
unsigned int is_depth_test : 1;
unsigned int is_dither : 1;
- bool is_light[8];
unsigned int is_lighting : 1;
unsigned int is_line_smooth : 1;
unsigned int is_color_logic_op : 1;
@@ -205,6 +202,13 @@ typedef struct GPUStateValues
unsigned int is_scissor_test : 1;
unsigned int is_stencil_test : 1;
+#ifdef WITH_LEGACY_OPENGL
+ unsigned int is_alpha_test : 1;
+ bool is_light[8];
+#endif
+
+ bool is_clip_plane[6];
+
/* GL_DEPTH_BUFFER_BIT */
/* unsigned int is_depth_test : 1; */
int depth_func;