Skip to content

Commit

Permalink
#636: build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed Nov 9, 2020
1 parent 0d128da commit dec44e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/studio/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,11 @@ void initConfig(Config* config, tic_mem* tic, FileSystem* fs)

void freeConfig(Config* config)
{
#if defined(CRT_SHADER_SUPPORT)

free((void*)config->data.shader.vertex);
free((void*)config->data.shader.pixel);
#endif

free(config);
}
7 changes: 3 additions & 4 deletions src/studio/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,14 @@ typedef struct

#if defined(CRT_SHADER_SUPPORT)
bool crtMonitor;
#endif

bool goFullscreen;

struct
{
const char* vertex;
const char* pixel;
} shader;
#endif

bool goFullscreen;

const tic_cartridge* cart;

Expand Down

0 comments on commit dec44e6

Please sign in to comment.