Fixed a bug in the FrameBuffer => Texture blits.

This commit is contained in:
Lionel Ulmer 2003-06-04 23:27:28 +00:00 committed by Alexandre Julliard
parent 97140ba2d1
commit f683839c13
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ gltex_bltfast(IDirectDrawSurfaceImpl *surf_ptr, DWORD dstx,
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--) {
glCopyTexSubImage2D(GL_TEXTURE_2D, surf_ptr->mipmap_level,