Commit abc243fe authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

examples/sdlshare: Create an OpenGL context for OpenGL 2.0

parent eb3699a7
......@@ -311,6 +311,9 @@ main (int argc, char **argv)
return -1;
}
SDL_GL_SetAttribute (SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute (SDL_GL_CONTEXT_MINOR_VERSION, 0);
sdl_message_event = SDL_RegisterEvents (1);
g_assert (sdl_message_event != -1);
......
......@@ -311,6 +311,9 @@ main (int argc, char **argv)
return -1;
}
SDL_GL_SetAttribute (SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute (SDL_GL_CONTEXT_MINOR_VERSION, 0);
/* Create a 640x480 OpenGL screen */
sdl_window =
SDL_CreateWindow ("SDL and gst-plugins-gl", SDL_WINDOWPOS_UNDEFINED,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment