Fixed a bug in the FrameBuffer => Texture blits.
This commit is contained in:
parent
97140ba2d1
commit
f683839c13
|
@ -264,7 +264,7 @@ gltex_bltfast(IDirectDrawSurfaceImpl *surf_ptr, DWORD dstx,
|
||||||
return DDERR_INVALIDPARAMS;
|
return DDERR_INVALIDPARAMS;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (y = src_ptr->surface_desc.dwHeight - rsrc->top;
|
for (y = (src_ptr->surface_desc.dwHeight - rsrc->top - 1);
|
||||||
y >= (src_ptr->surface_desc.dwHeight - (rsrc->top + height));
|
y >= (src_ptr->surface_desc.dwHeight - (rsrc->top + height));
|
||||||
y--) {
|
y--) {
|
||||||
glCopyTexSubImage2D(GL_TEXTURE_2D, surf_ptr->mipmap_level,
|
glCopyTexSubImage2D(GL_TEXTURE_2D, surf_ptr->mipmap_level,
|
||||||
|
|
Loading…
Reference in New Issue