(360) Fixed
This commit is contained in:
parent
c46866c6e5
commit
fe17a42e62
|
@ -219,10 +219,10 @@ static bool xdk360_gfx_frame(void *data, const void *frame,
|
||||||
if (vid->last_width != width || vid->last_height != height)
|
if (vid->last_width != width || vid->last_height != height)
|
||||||
{
|
{
|
||||||
D3DLOCKED_RECT d3dlr;
|
D3DLOCKED_RECT d3dlr;
|
||||||
if (SUCCEEDED(gl->lpTexture->LockRect(0, &d3dlr, NULL, D3DLOCK_NOSYSLOCK)))
|
if (SUCCEEDED(vid->lpTexture->LockRect(0, &d3dlr, NULL, D3DLOCK_NOSYSLOCK)))
|
||||||
{
|
{
|
||||||
memset(d3dlr.pBits, 0, 512 * d3dlr.Pitch);
|
memset(d3dlr.pBits, 0, 512 * d3dlr.Pitch);
|
||||||
gl->lpTexture->UnlockRect(0);
|
vid->lpTexture->UnlockRect(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
float tex_w = width / 512.0f;
|
float tex_w = width / 512.0f;
|
||||||
|
|
Loading…
Reference in New Issue