- fix small TRACE bug introduced in a previous patch
- add WRAPU / WRAPV warning
This commit is contained in:
parent
69e711ef01
commit
19ef31e802
|
@ -991,8 +991,9 @@ Main_DirectDrawSurface_Lock(LPDIRECTDRAWSURFACE7 iface, LPRECT prect,
|
|||
TRACE(" - locking flags : "); DDRAW_dump_lockflag(flags);
|
||||
}
|
||||
if (WARN_ON(ddraw)) {
|
||||
if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY))
|
||||
if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY)) {
|
||||
WARN(" - unsupported locking flag : "); DDRAW_dump_lockflag(flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY));
|
||||
}
|
||||
}
|
||||
|
||||
/* First, copy the Surface description */
|
||||
|
|
|
@ -109,6 +109,16 @@ void set_render_state(D3DRENDERSTATETYPE dwRenderStateType,
|
|||
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
|
||||
break;
|
||||
|
||||
case D3DRENDERSTATE_WRAPU: /* 5 */
|
||||
if (dwRenderState)
|
||||
ERR("WRAPU mode unsupported by OpenGL.. Expect graphical glitches !\n");
|
||||
break;
|
||||
|
||||
case D3DRENDERSTATE_WRAPV: /* 6 */
|
||||
if (dwRenderState)
|
||||
ERR("WRAPV mode unsupported by OpenGL.. Expect graphical glitches !\n");
|
||||
break;
|
||||
|
||||
case D3DRENDERSTATE_ZENABLE: /* 7 */
|
||||
if (dwRenderState)
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
|
|
Loading…
Reference in New Issue