wined3d: Let the context handle the draw buffer in fb_copy_to_texture_hwstretch().

This commit is contained in:
Henri Verbeet 2009-12-13 22:04:00 +01:00 committed by Alexandre Julliard
parent 59db3ecaa0
commit 82556b613e
1 changed files with 1 additions and 4 deletions

View File

@ -3320,7 +3320,7 @@ static inline void fb_copy_to_texture_hwstretch(IWineD3DSurfaceImpl *This, IWine
glTexParameteri(texture_target, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(texture_target, GL_TEXTURE_WRAP_T, GL_CLAMP);
glDrawBuffer(drawBuffer);
context_set_draw_buffer(context, drawBuffer);
glReadBuffer(drawBuffer);
glBegin(GL_QUADS);
@ -3397,9 +3397,6 @@ static inline void fb_copy_to_texture_hwstretch(IWineD3DSurfaceImpl *This, IWine
glTexCoord2f((float) fbwidth / (float) Src->pow2Width, (float) fbheight / (float) Src->pow2Height);
glVertex2i(fbwidth, 0);
glEnd();
} else {
/* Restore the old draw buffer */
glDrawBuffer(GL_BACK);
}
glDisable(texture_target);
checkGLcall("glDisable(texture_target)");