diff options
author | Francisco Jerez <currojerez@riseup.net> | 2015-01-31 17:00:19 +0200 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2015-05-04 17:44:16 +0300 |
commit | b663d6bc6f4de9439107fc6444e436d14e21ee79 (patch) | |
tree | 6fc0665bf99f67a91769bce8d91c21ea94da36a6 /src/mesa/main/shaderimage.h | |
parent | 1b9990e37333076fdc112295ae09193bbe8d57db (diff) | |
download | external_mesa3d-b663d6bc6f4de9439107fc6444e436d14e21ee79.zip external_mesa3d-b663d6bc6f4de9439107fc6444e436d14e21ee79.tar.gz external_mesa3d-b663d6bc6f4de9439107fc6444e436d14e21ee79.tar.bz2 |
mesa: Initialize image units to default state on context creation.
This is the required initial image unit state according to "Table 23.45. Image
State (state per image unit)" of the OpenGL 4.3 specification.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/main/shaderimage.h')
-rw-r--r-- | src/mesa/main/shaderimage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/shaderimage.h b/src/mesa/main/shaderimage.h index 1c7d1e0..33d8a1e 100644 --- a/src/mesa/main/shaderimage.h +++ b/src/mesa/main/shaderimage.h @@ -43,6 +43,12 @@ mesa_format _mesa_get_shader_image_format(GLenum format); /** + * Initialize a context's shader image units to the default state. + */ +void +_mesa_init_image_units(struct gl_context *ctx); + +/** * Recalculate the \c _Valid flag of a context's shader image units. * * To be called when the state of any texture bound to an image unit |