GPU: only call glShadeModel when needed
This commit is contained in:
parent
efd547f3da
commit
5da02ab9e2
|
@ -512,7 +512,7 @@ void GPU_basic_shader_bind(int options)
|
|||
if (options & GPU_SHADER_FLAT_NORMAL) {
|
||||
glShadeModel(GL_FLAT);
|
||||
}
|
||||
else {
|
||||
else if (bound_options & GPU_SHADER_FLAT_NORMAL) {
|
||||
glShadeModel(GL_SMOOTH);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue