summaryrefslogtreecommitdiff
path: root/src/glsl/link_uniform_initializers.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2013-11-25 13:50:47 -0800
committerFrancisco Jerez <currojerez@riseup.net>2014-02-12 18:39:48 +0100
commit8a2508ee0726b349318c1e05122edbe5a545480a (patch)
treeca1edcc3a8600433286fdfb2d212af7bdf5823ec /src/glsl/link_uniform_initializers.cpp
parent9e611fc72dc80abd7bc1fec7863eb1fccb833930 (diff)
glsl: Add image type to the GLSL IR.
v2: Reuse the glsl_sampler_dim enum for images. Reuse the glsl_type::sampler_* fields instead of creating new ones specific to image types. Reuse the same constructor as for samplers adding a new 'base_type' argument. Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/glsl/link_uniform_initializers.cpp')
-rw-r--r--src/glsl/link_uniform_initializers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/link_uniform_initializers.cpp b/src/glsl/link_uniform_initializers.cpp
index 7d5c1472dae..9d6977d573a 100644
--- a/src/glsl/link_uniform_initializers.cpp
+++ b/src/glsl/link_uniform_initializers.cpp
@@ -69,6 +69,7 @@ copy_constant_to_storage(union gl_constant_value *storage,
break;
case GLSL_TYPE_ARRAY:
case GLSL_TYPE_STRUCT:
+ case GLSL_TYPE_IMAGE:
case GLSL_TYPE_ATOMIC_UINT:
case GLSL_TYPE_INTERFACE:
case GLSL_TYPE_VOID: