Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-06-10 02:36:53 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-06-10 02:43:54 +0400
commite8c63caf77a1d3470556433065261a4ede3ebae2 (patch)
tree5984db4e13d1fb78fc14f8c1e037f3dab08bd806 /source/blender/gpu/GPU_extensions.h
parent131d388d81a6c676498050e6905de8f7c6df8190 (diff)
Fix T40498 invalid textures flickering.
Issue here is most likely sampler uniforms and textures not being updated properly when zero binding is created. Solution for now is to allow zero binding but when this happens use sexy pink invalid texture instead :p.
Diffstat (limited to 'source/blender/gpu/GPU_extensions.h')
-rw-r--r--source/blender/gpu/GPU_extensions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_extensions.h b/source/blender/gpu/GPU_extensions.h
index e97cc57055f..04c4119df6e 100644
--- a/source/blender/gpu/GPU_extensions.h
+++ b/source/blender/gpu/GPU_extensions.h
@@ -117,6 +117,9 @@ GPUTexture *GPU_texture_create_vsm_shadow_map(int size, char err_out[256]);
GPUTexture *GPU_texture_from_blender(struct Image *ima,
struct ImageUser *iuser, bool is_data, double time, int mipmap);
GPUTexture *GPU_texture_from_preview(struct PreviewImage *prv, int mipmap);
+void GPU_invalid_tex_init(void);
+void GPU_invalid_tex_bind(int mode);
+void GPU_invalid_tex_free(void);
void GPU_texture_free(GPUTexture *tex);