aboutsummaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-22 14:51:03 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-22 14:51:03 +0100
commite5a71b9a0c68987720b1719c21ff13260ad87e6d (patch)
tree2a148444702dcc9d9dd6326b1625b05234d38d84 /src/state.c
parent322c1a49f59d3fc6441804bbbb29da22567e4bcb (diff)
downloadmandelbrot-opengl3.3.tar.gz
mandelbrot-opengl3.3.tar.bz2
mandelbrot-opengl3.3.zip
Changed opengl version to 3.3opengl3.3
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c
index 5df4f02..c5c7271 100644
--- a/src/state.c
+++ b/src/state.c
@@ -4,8 +4,8 @@
bool state_init(State *state)
{
SDL_CALL(SDL_Init(SDL_INIT_VIDEO));
- SDL_CALL(SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4));
- SDL_CALL(SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0));
+ SDL_CALL(SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3));
+ SDL_CALL(SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3));
SDL_CALL(SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE));
SDL_CALL(SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1));
SDL_CALL(state->window = SDL_CreateWindow(