#Why drawing a square doesn't work in OpenGL 3.3 Core and SDL3

3 messages · Page 1 of 1 (latest)

eternal glacier
#

Hello. I want to try OpenGL 3.3 Core with SDL3. I found an example that draw a square with GLFW3. I ran it and it works. I try to translate it to SDL3 but it draws nothing. I cannot understand why.

#

This is an GLFW example that works on my laptop and that I translated to SDL3:

eternal glacier
#

glGetError() prints 1281 after glDrawArrays(). It means "Invalid value"