Commit 19ef31e8 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

- fix small TRACE bug introduced in a previous patch

- add WRAPU / WRAPV warning
parent 69e711ef
......@@ -991,9 +991,10 @@ 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 */
DD_STRUCT_COPY_BYSIZE(pDDSD,&(This->surface_desc));
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment