Commit 605136ab authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get rid of the SHADER_PGMSIZE constant.

parent 52d10805
......@@ -245,13 +245,12 @@ void shader_buffer_clear(struct wined3d_shader_buffer *buffer)
BOOL shader_buffer_init(struct wined3d_shader_buffer *buffer)
{
buffer->buffer = HeapAlloc(GetProcessHeap(), 0, SHADER_PGMSIZE);
if (!buffer->buffer)
buffer->buffer_size = 16384;
if (!(buffer->buffer = HeapAlloc(GetProcessHeap(), 0, buffer->buffer_size)))
{
ERR("Failed to allocate shader buffer memory.\n");
return FALSE;
}
buffer->buffer_size = SHADER_PGMSIZE;
shader_buffer_clear(buffer);
return TRUE;
......
......@@ -412,8 +412,6 @@ enum wined3d_shader_rel_op
* Shader model 3 according to msdn (and for software shaders) */
#define MAX_LABELS 16
#define SHADER_PGMSIZE 16384
struct wined3d_shader_buffer
{
char *buffer;
......
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