wined3d: Get rid of the SHADER_PGMSIZE constant.
This commit is contained in:
parent
52d1080544
commit
605136ab04
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue