From 53e60681ff8645961a270187064506dfb69f8e17 Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 28 Jan 2011 15:19:29 +0000 Subject: [PATCH] ensure cull face state is committed in softrast path git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10771 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_backend.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gl_backend.c b/gl_backend.c index c81b3ed6..310f4fae 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -2061,7 +2061,12 @@ void GL_CullFace(int state) Con_DPrintf("FIXME D3D11 %s:%i %s\n", __FILE__, __LINE__, __FUNCTION__); break; case RENDERPATH_SOFT: - DPSOFTRAST_CullFace(gl_state.cullface); + if (gl_state.cullface != state) + { + gl_state.cullface = state; + gl_state.cullfaceenable = state != GL_NONE ? true : false; + DPSOFTRAST_CullFace(gl_state.cullface); + } break; } } -- 2.39.2