From bfaf7a3eb15e36e69fc00448e6c7fd938a6fa2fa Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Thu, 27 Apr 2017 11:24:35 -0400 Subject: OpenGL: stop enabling GL_TEXTURE Texturing is always enabled in GLSL. Simply use a sampler in the shader. Replaced gpu_generate_mipmap with glGenerateMipmap since the former just Enabled/Disabled the texture target and called the latter. Part of T51164 --- source/blender/gpu/GPU_draw.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/gpu/GPU_draw.h') diff --git a/source/blender/gpu/GPU_draw.h b/source/blender/gpu/GPU_draw.h index 7afb4c2b88b..f6bfada7fd8 100644 --- a/source/blender/gpu/GPU_draw.h +++ b/source/blender/gpu/GPU_draw.h @@ -204,7 +204,6 @@ typedef struct GPUStateValues unsigned int is_sample_alpha_to_coverage : 1; unsigned int is_scissor_test : 1; unsigned int is_stencil_test : 1; - unsigned int is_texture_2d : 1; /* GL_DEPTH_BUFFER_BIT */ /* unsigned int is_depth_test : 1; */ -- cgit v1.2.3