Have I made something wrong ? |
Lolilolight
|
Here is a smaller code which reproduce the bug :
This code doens't clear the window, but if I put everything on the main it works.
Is SDL adapted for C++ code, or is it only compatible with C ? Thanks for your answers. |
|||||||||||||||
|
G-Shadow
|
I do not see SDL_Init() in your "smaller code" main().
(but it still works) I had just compiled your code and it works. I juts changed glClearColor(1, 0, 0, 1); to make it red color instead of black. |
|||||||||||
|