Commit f683839c authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Fixed a bug in the FrameBuffer => Texture blits.

parent 97140ba2
...@@ -264,7 +264,7 @@ gltex_bltfast(IDirectDrawSurfaceImpl *surf_ptr, DWORD dstx, ...@@ -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,
......
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