diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c index b77fc047473..765bbd5e751 100644 --- a/source/blender/gpu/intern/gpu_state.c +++ b/source/blender/gpu/intern/gpu_state.c @@ -20,6 +20,8 @@ #include "DNA_userdef_types.h" +#include "BKE_global.h" + #include "GPU_glew.h" #include "GPU_state.h" #include "GPU_extensions.h" @@ -92,7 +94,7 @@ bool GPU_depth_test_enabled() void GPU_line_smooth(bool enable) { - if (enable) { + if (enable && ((G.debug & G_DEBUG_GPU) == 0)) { glEnable(GL_LINE_SMOOTH); } else { @@ -116,7 +118,7 @@ void GPU_point_size(float size) void GPU_polygon_smooth(bool enable) { - if (enable) { + if (enable && ((G.debug & G_DEBUG_GPU) == 0)) { glEnable(GL_POLYGON_SMOOTH); } else {