| 208 | } |
| 209 | |
| 210 | bool RenderState_SetDepthEnabled(RenderState *state, bool enabled, bool forced) |
| 211 | { |
| 212 | if (forced || state->depth.enabled != enabled) |
| 213 | { |
| 214 | if (enabled) |
| 215 | { |
| 216 | glEnable(GL_DEPTH_TEST); |
| 217 | } |
| 218 | else |
| 219 | { |
| 220 | glDisable(GL_DEPTH_TEST); |
| 221 | } |
| 222 | return true; |
| 223 | } |
| 224 | |
| 225 | return false; |
| 226 | } |
| 227 | |
| 228 | bool RenderState_SetStencilEnabled(RenderState *state, bool enabled, bool forced) |
| 229 | { |
no outgoing calls
no test coverage detected