diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-07 02:12:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-07 02:12:12 +0300 |
commit | 627c764e3cdd7ce67d9640e5a0c5280953c3728d (patch) | |
tree | c810fa3ad6ba8f998b106db02a71879c6d14394a /source/blender/gpu/intern/gpu_codegen.c | |
parent | f1e0ef1d1281cc63d092a144ddbe3b1140104cd5 (diff) |
bug [#26329] Project Paint not working
we cant ensure that a requested buffer can be allocated so report opengl errors when failing to allocate the buffer (rather then printing to console).
this is common enough and generic error isn't too helpful to users.
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index fad65a95a49..470b99de00b 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -983,11 +983,11 @@ static void gpu_node_input_link(GPUNode *node, GPUNodeLink *link, int type) input->textype = type; if (type == GPU_TEX1D) { - input->tex = GPU_texture_create_1D(link->texturesize, link->ptr1); + input->tex = GPU_texture_create_1D(link->texturesize, link->ptr1, NULL); input->textarget = GL_TEXTURE_1D; } else { - input->tex = GPU_texture_create_2D(link->texturesize, link->texturesize, link->ptr2); + input->tex = GPU_texture_create_2D(link->texturesize, link->texturesize, link->ptr2, NULL); input->textarget = GL_TEXTURE_2D; } |