diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-08 07:50:36 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-08 08:19:48 +0300 |
commit | 0947c97fade7a5400e22d85b1f61c5a0f552976a (patch) | |
tree | 181186c3c31706c3e0c813b62990c9186e2fc6f6 /source/blender/gpu/intern/gpu_compositing.c | |
parent | 1de61696fd2ffc9d800a2eff964045b90c9f2347 (diff) |
OpenGL: use PRIM instead of GL enum everywhere else
Well, everywhere that uses Gawain for drawing. Places that call OpenGL directly still use GL enums.
Part of T49043
Diffstat (limited to 'source/blender/gpu/intern/gpu_compositing.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_compositing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_compositing.c b/source/blender/gpu/intern/gpu_compositing.c index 8ee22ce1c13..719708ff7aa 100644 --- a/source/blender/gpu/intern/gpu_compositing.c +++ b/source/blender/gpu/intern/gpu_compositing.c @@ -287,7 +287,7 @@ GPUFX *GPU_fx_compositor_create(void) VertexBuffer_set_attrib(vbo, pos, i, fullscreencos[i]); VertexBuffer_set_attrib(vbo, uvs, i, fullscreenuvs[i]); } - fx->quad_batch = Batch_create(GL_TRIANGLE_STRIP, vbo, NULL); + fx->quad_batch = Batch_create(PRIM_TRIANGLE_STRIP, vbo, NULL); /* Point Buffer */ static VertexFormat format_point = {0}; @@ -299,7 +299,7 @@ GPUFX *GPU_fx_compositor_create(void) VertexBuffer *vbo_point = VertexBuffer_create_with_format(&format_point); VertexBuffer_allocate_data(vbo_point, 1); VertexBuffer_set_attrib(vbo_point, dummy_attrib, 0, &dummy); - fx->point_batch = Batch_create(GL_POINTS, vbo_point, NULL); + fx->point_batch = Batch_create(PRIM_POINTS, vbo_point, NULL); return fx; } |