Commit 1c5d5443 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use the texture dimension helpers in context_find_fbo_entry().

parent a54c438e
......@@ -480,8 +480,10 @@ static struct fbo_entry *context_find_fbo_entry(struct wined3d_context *context,
if (depth_stencil && render_targets[0])
{
if (depth_stencil->resource.width < render_targets[0]->resource.width ||
depth_stencil->resource.height < render_targets[0]->resource.height)
if (wined3d_texture_get_level_width(depth_stencil->container, depth_stencil->texture_level)
< wined3d_texture_get_level_width(render_targets[0]->container, render_targets[0]->texture_level)
|| wined3d_texture_get_level_height(depth_stencil->container, depth_stencil->texture_level)
< wined3d_texture_get_level_height(render_targets[0]->container, render_targets[0]->texture_level))
{
WARN("Depth stencil is smaller than the primary color buffer, disabling\n");
depth_stencil = NULL;
......
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