void device_depth_function(gs_device_t device, enum gs_depth_test test) { GLenum gl_test = convert_gs_depth_test(test); glDepthFunc(gl_test); if (!gl_success("glDepthFunc")) blog(LOG_ERROR, "device_depth_function (GL) failed"); UNUSED_PARAMETER(device); }
void device_stencilfunction(device_t device, enum gs_stencil_side side, enum gs_depth_test test) { GLenum gl_side = convert_gs_stencil_side(side); GLenum gl_test = convert_gs_depth_test(test); glStencilFuncSeparate(gl_side, gl_test, 0, 0xFFFFFFFF); if (!gl_success("glStencilFuncSeparate")) blog(LOG_ERROR, "device_stencilfunction (GL) failed"); }