Make use_opengl local

The flag is used only locally, there is no need to store it in the
screen structure.
This commit is contained in:
Romain Vimont
2021-02-07 19:12:14 +01:00
parent c0c4ba7009
commit 862948b132
2 changed files with 2 additions and 5 deletions

View File

@@ -16,7 +16,6 @@ struct screen {
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Texture *texture;
bool use_opengl;
struct sc_opengl gl;
struct size frame_size;
struct size content_size; // rotated frame_size
@@ -41,7 +40,6 @@ struct screen {
.window = NULL, \
.renderer = NULL, \
.texture = NULL, \
.use_opengl = false, \
.gl = {0}, \
.frame_size = { \
.width = 0, \