From e8c63caf77a1d3470556433065261a4ede3ebae2 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Tue, 10 Jun 2014 01:36:53 +0300 Subject: 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. --- source/blender/gpu/GPU_extensions.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/gpu/GPU_extensions.h') 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); -- cgit v1.2.3