Silence some TRACEs to better spot real errors.

This commit is contained in:
Lionel Ulmer 2003-05-17 18:30:27 +00:00 committed by Alexandre Julliard
parent a42b0d1368
commit 166750299e
2 changed files with 26 additions and 6 deletions

View File

@ -723,7 +723,7 @@ static void draw_primitive_start_GL(D3DPRIMITIVETYPE d3dpt)
break;
default:
TRACE("Unhandled primitive\n");
FIXME("Unhandled primitive %08x\n", d3dpt);
break;
}
}
@ -1860,6 +1860,12 @@ GL_IDirect3DDeviceImpl_7_3T_SetTextureStageState(LPDIRECT3DDEVICE7 iface,
color[3] = ((dwState >> 24) & 0xFF) / 255.0;
glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, color);
TRACE(" Stage type : D3DTSS_BORDERCOLOR => %02lx %02lx %02lx %02lx (RGBA)\n",
((dwState >> 16) & 0xFF),
((dwState >> 8) & 0xFF),
((dwState >> 0) & 0xFF),
((dwState >> 24) & 0xFF));
} break;
case D3DTSS_TEXCOORDINDEX: {

View File

@ -131,13 +131,17 @@ void set_render_state(IDirect3DDeviceImpl* This,
break;
case D3DRENDERSTATE_WRAPU: /* 5 */
if (dwRenderState)
ERR("WRAPU mode unsupported by OpenGL.. Expect graphical glitches !\n");
break;
case D3DRENDERSTATE_WRAPV: /* 6 */
case D3DRENDERSTATE_WRAP0: /* 128 */
case D3DRENDERSTATE_WRAP1: /* 129 */
case D3DRENDERSTATE_WRAP2: /* 130 */
case D3DRENDERSTATE_WRAP3: /* 131 */
case D3DRENDERSTATE_WRAP4: /* 132 */
case D3DRENDERSTATE_WRAP5: /* 133 */
case D3DRENDERSTATE_WRAP6: /* 134 */
case D3DRENDERSTATE_WRAP7: /* 135 */
if (dwRenderState)
ERR("WRAPV mode unsupported by OpenGL.. Expect graphical glitches !\n");
ERR("Texture WRAP modes unsupported by OpenGL.. Expect graphical glitches !\n");
break;
case D3DRENDERSTATE_ZENABLE: /* 7 */
@ -487,6 +491,16 @@ void store_render_state(IDirect3DDeviceImpl *This,
} else if (dwRenderStateType == D3DRENDERSTATE_TEXTUREADDRESS) {
lpStateBlock->render_state[D3DRENDERSTATE_TEXTUREADDRESSU - 1] = dwRenderState;
lpStateBlock->render_state[D3DRENDERSTATE_TEXTUREADDRESSV - 1] = dwRenderState;
} else if (dwRenderStateType == D3DRENDERSTATE_WRAPU) {
if (dwRenderState)
lpStateBlock->render_state[D3DRENDERSTATE_WRAP0] |= D3DWRAP_U;
else
lpStateBlock->render_state[D3DRENDERSTATE_WRAP0] &= ~D3DWRAP_U;
} else if (dwRenderStateType == D3DRENDERSTATE_WRAPV) {
if (dwRenderState)
lpStateBlock->render_state[D3DRENDERSTATE_WRAP0] |= D3DWRAP_V;
else
lpStateBlock->render_state[D3DRENDERSTATE_WRAP0] &= ~D3DWRAP_V;
}
/* Default case */