Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_buffers.c
| Context not available. | |||||
| if (wireframe) | if (wireframe) | ||||
| glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); | glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); | ||||
| else | else { | ||||
| glShadeModel((buffers->smooth || buffers->face_indices_len) ? GL_SMOOTH : GL_FLAT); | bound_options = GPU_basic_shader_bound_options(); | ||||
| GPU_basic_shader_bind(bound_options | ((buffers->smooth || buffers->face_indices_len) ? 0 : GPU_SHADER_FLAT_NORMAL)); | |||||
| } | |||||
| if (buffers->tot_quad) { | if (buffers->tot_quad) { | ||||
| const char *offset = base; | const char *offset = base; | ||||
| Context not available. | |||||