Skip to content

Commit

Permalink
Add a NULL check to vkpt_fake_emissive_texture. For NVIDIA#167
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k authored and apanteleev committed Dec 21, 2021
1 parent 308b3a2 commit ffd5cb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/refresh/vkpt/textures.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,9 @@ static void apply_fake_emissive_threshold(image_t *image, int bright_threshold_i

image_t *vkpt_fake_emissive_texture(image_t *image, int bright_threshold_int)
{
if(!image)
return NULL;

if((image->upload_width == 1) && (image->upload_height == 1))
{
// Not much to do...
Expand Down

0 comments on commit ffd5cb1

Please sign in to comment.