wined3d: Do not return GL_COLOR_ATTACHMENT0 for the back-buffer in wined3d_texture_get_gl_buffer().

This should no longer be needed.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-03-22 23:11:25 +01:00 committed by Alexandre Julliard
parent 5e4eaa3264
commit 067f323844
1 changed files with 0 additions and 5 deletions

View File

@ -68,11 +68,6 @@ GLenum wined3d_texture_get_gl_buffer(const struct wined3d_texture *texture)
if (texture == swapchain->back_buffers[0]) if (texture == swapchain->back_buffers[0])
{ {
if (swapchain->render_to_fbo)
{
TRACE("Returning GL_COLOR_ATTACHMENT0.\n");
return GL_COLOR_ATTACHMENT0;
}
TRACE("Returning GL_BACK.\n"); TRACE("Returning GL_BACK.\n");
return GL_BACK; return GL_BACK;
} }