The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
What the difference between render and GLContext?
pico_kuo


Joined: 20 Oct 2014
Posts: 1
Hi, Sirs:
I create a window by calling SDL_CreateWindow(...).
Then, I use SDL_CreateContext(...) to create GLContext and SDL_CreateRenderer(...) to create a render.

After that, I just render GL part, and I don't see anything updated on display.

My question is if it is forbidden to create render and GLContext at the same time?

BTW, if I don't create render, only GLContext, it can update the display as my expectation.

Thanks.

BR,
Pico