Let Polygon Offset be turned on and off.

This commit is contained in:
Vladimir Dergachev 2005-02-08 04:20:40 +00:00
parent 923b6fc4d9
commit 3f847b73f3
1 changed files with 5 additions and 1 deletions

View File

@ -506,7 +506,11 @@ static void r300Enable(GLcontext* ctx, GLenum cap, GLboolean state)
case GL_POLYGON_OFFSET_FILL:
R300_STATECHANGE(r300, unk42B4);
r300->hw.unk42B4.cmd[1] = 3;
if(state){
r300->hw.unk42B4.cmd[1] |= 3;
} else {
r300->hw.unk42B4.cmd[1] &= ~3;
}
break;
case GL_VERTEX_PROGRAM_ARB:
//TCL_FALLBACK(rmesa->glCtx, R200_TCL_FALLBACK_TCL_DISABLE, state);