wined3d: Get rid of the SHADER_PGMSIZE constant.

This commit is contained in:
Henri Verbeet 2013-08-29 10:26:23 +02:00 committed by Alexandre Julliard
parent 52d1080544
commit 605136ab04
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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;