Fix high quality depth of field on the Mac.
authorAntony Riakiotakis <kalast@gmail.com>
Fri, 20 Mar 2015 14:26:13 +0000 (15:26 +0100)
committerAntony Riakiotakis <kalast@gmail.com>
Fri, 20 Mar 2015 14:26:13 +0000 (15:26 +0100)
commit07b2508305d58d0c772464f9a174fca2b96036c2
treee224074efb61874b31e9b67f57b7cbdc0544c58f
parent3d6642db835a9e35ea15cf9f856ce047447690ca
Fix high quality depth of field on the Mac.

Quite a few things wrong here:

* Mac did not support EXT_draw_instanced, only ARB_draw_instanced
* Draw instanced did not work unless data came from vertex buffer, which
is second time we see weird things with vertex arrays in mac
* There were a few stupid mistakes by me as well, such as binding to
uniform locations for the wrong shaders (it's a wonder it ever worked
:p)
source/blender/gpu/GPU_extensions.h
source/blender/gpu/intern/gpu_codegen.c
source/blender/gpu/intern/gpu_compositing.c
source/blender/gpu/intern/gpu_extensions.c
source/blender/gpu/intern/gpu_simple_shader.c
source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl
source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl