Commit b76fcbe0 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Keep track of FBOs through the GL names.

parent f11f6f68
...@@ -1311,6 +1311,7 @@ struct wined3d_context ...@@ -1311,6 +1311,7 @@ struct wined3d_context
GLuint fbo_read_binding; GLuint fbo_read_binding;
GLuint fbo_draw_binding; GLuint fbo_draw_binding;
struct wined3d_surface **blit_targets; struct wined3d_surface **blit_targets;
struct wined3d_fbo_entry_key *fbo_key;
GLenum *draw_buffers; GLenum *draw_buffers;
DWORD draw_buffers_mask; /* Enabled draw buffers, 31 max. */ DWORD draw_buffers_mask; /* Enabled draw buffers, 31 max. */
...@@ -2475,15 +2476,25 @@ struct wined3d_renderbuffer_entry ...@@ -2475,15 +2476,25 @@ struct wined3d_renderbuffer_entry
UINT height; UINT height;
}; };
struct wined3d_fbo_resource
{
GLuint object;
GLuint level, target;
};
struct fbo_entry struct fbo_entry
{ {
struct list entry; struct list entry;
struct wined3d_surface **render_targets; struct wined3d_surface **d3d_render_targets;
struct wined3d_surface *depth_stencil; struct wined3d_surface *d3d_depth_stencil;
DWORD color_location, ds_location;
DWORD rt_mask; DWORD rt_mask;
BOOL attached; BOOL attached;
GLuint id; GLuint id;
struct wined3d_fbo_entry_key
{
DWORD rb_namespace;
struct wined3d_fbo_resource objects[1];
} key;
}; };
struct wined3d_surface_ops struct wined3d_surface_ops
......
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