Commit 0d0f3c94 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Check for GL_FRONT before GL_BACK in wined3d_texture_get_gl_buffer().

parent 5ab99b16
......@@ -60,7 +60,13 @@ GLenum wined3d_texture_get_gl_buffer(const struct wined3d_texture *texture)
return GL_NONE;
}
if (swapchain->back_buffers && swapchain->back_buffers[0] == texture)
if (texture == swapchain->front_buffer)
{
TRACE("Returning GL_FRONT.\n");
return GL_FRONT;
}
if (texture == swapchain->back_buffers[0])
{
if (swapchain->render_to_fbo)
{
......@@ -70,11 +76,6 @@ GLenum wined3d_texture_get_gl_buffer(const struct wined3d_texture *texture)
TRACE("Returning GL_BACK.\n");
return GL_BACK;
}
else if (texture == swapchain->front_buffer)
{
TRACE("Returning GL_FRONT.\n");
return GL_FRONT;
}
FIXME("Higher back buffer, returning GL_BACK.\n");
return GL_BACK;
......
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