Skip to content

Commit

Permalink
Fix program texture is not updated
Browse files Browse the repository at this point in the history
There was a type in the condition to judge if the target is program,
which caused the condition never met, and the routine to process the
program texture was skipped.
  • Loading branch information
norihiro committed Apr 13, 2023
1 parent 1fee17e commit 7392a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.h
Expand Up @@ -8,12 +8,12 @@ extern "C" {

static inline bool is_program_name(const char *name)
{
return *name && name[0] == 0;
return name && name[0] == 0;
}

static inline bool is_preview_name(const char *name)
{
return *name && name[0] == 0x10 && name[1] == 0;
return name && name[0] == 0x10 && name[1] == 0;
}

struct cm_surface_data
Expand Down

0 comments on commit 7392a48

Please sign in to comment.