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

wined3d: Remove a unused parameter to shader_dirtifyable_constants().

parent 9d9ce298
......@@ -4797,7 +4797,8 @@ static void shader_arb_free(IWineD3DDeviceImpl *device)
HeapFree(GetProcessHeap(), 0, device->shader_priv);
}
static BOOL shader_arb_dirty_const(IWineD3DDevice *iface) {
static BOOL shader_arb_dirty_const(void)
{
return TRUE;
}
......
......@@ -1410,7 +1410,7 @@ struct wined3d_context *context_create(IWineD3DSwapChainImpl *swapchain,
ret->hdc = hdc;
ret->pixel_format = pixel_format;
if (device->shader_backend->shader_dirtifyable_constants((IWineD3DDevice *)device))
if (device->shader_backend->shader_dirtifyable_constants())
{
/* Create the dirty constants array and initialize them to dirty */
ret->vshader_const_dirty = HeapAlloc(GetProcessHeap(), 0,
......
......@@ -4901,7 +4901,8 @@ static void shader_glsl_free(IWineD3DDeviceImpl *device)
device->shader_priv = NULL;
}
static BOOL shader_glsl_dirty_const(IWineD3DDevice *iface) {
static BOOL shader_glsl_dirty_const(void)
{
/* TODO: GL_EXT_bindable_uniform can be used to share constants across shaders */
return FALSE;
}
......
......@@ -1521,7 +1521,7 @@ static void shader_none_load_np2fixup_constants(void *shader_priv,
static void shader_none_destroy(IWineD3DBaseShader *iface) {}
static HRESULT shader_none_alloc(IWineD3DDeviceImpl *device) {return WINED3D_OK;}
static void shader_none_free(IWineD3DDeviceImpl *device) {}
static BOOL shader_none_dirty_const(IWineD3DDevice *iface) {return FALSE;}
static BOOL shader_none_dirty_const(void) {return FALSE;}
static void shader_none_get_caps(const struct wined3d_gl_info *gl_info, struct shader_caps *caps)
{
......
......@@ -761,7 +761,7 @@ typedef struct {
void (*shader_destroy)(IWineD3DBaseShader *iface);
HRESULT (*shader_alloc_private)(IWineD3DDeviceImpl *device);
void (*shader_free_private)(IWineD3DDeviceImpl *device);
BOOL (*shader_dirtifyable_constants)(IWineD3DDevice *iface);
BOOL (*shader_dirtifyable_constants)(void);
void (*shader_get_caps)(const struct wined3d_gl_info *gl_info, struct shader_caps *caps);
BOOL (*shader_color_fixup_supported)(struct color_fixup_desc fixup);
void (*shader_add_instruction_modifiers)(const struct wined3d_shader_instruction *ins);
......
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