Commit fd8dbf08 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Make the surface parameter to surface_get_gl_buffer() const.

parent 0ce282ed
......@@ -2412,9 +2412,9 @@ void surface_set_compatible_renderbuffer(struct wined3d_surface *surface, struct
checkGLcall("set_compatible_renderbuffer");
}
GLenum surface_get_gl_buffer(struct wined3d_surface *surface)
GLenum surface_get_gl_buffer(const struct wined3d_surface *surface)
{
struct wined3d_swapchain *swapchain = surface->container.u.swapchain;
const struct wined3d_swapchain *swapchain = surface->container.u.swapchain;
TRACE("surface %p.\n", surface);
......
......@@ -2107,7 +2107,7 @@ static inline GLuint surface_get_texture_name(struct wined3d_surface *surface,
void surface_add_dirty_rect(struct wined3d_surface *surface, const WINED3DBOX *dirty_rect) DECLSPEC_HIDDEN;
void surface_bind(struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, BOOL srgb) DECLSPEC_HIDDEN;
HRESULT surface_color_fill(struct wined3d_surface *s, const RECT *rect, const WINED3DCOLORVALUE *color) DECLSPEC_HIDDEN;
GLenum surface_get_gl_buffer(struct wined3d_surface *surface) DECLSPEC_HIDDEN;
GLenum surface_get_gl_buffer(const struct wined3d_surface *surface) DECLSPEC_HIDDEN;
BOOL surface_init_sysmem(struct wined3d_surface *surface) DECLSPEC_HIDDEN;
void surface_internal_preload(struct wined3d_surface *surface, enum WINED3DSRGB srgb) DECLSPEC_HIDDEN;
BOOL surface_is_offscreen(const struct wined3d_surface *surface) DECLSPEC_HIDDEN;
......
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