Forráskód Böngészése

Sync SDL3 wiki -> header

[ci skip]
SDL Wiki Bot 2 napja
szülő
commit
0331321a70
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      include/SDL3/SDL_video.h

+ 3 - 0
include/SDL3/SDL_video.h

@@ -3234,6 +3234,9 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GL_GetAttribute(SDL_GLAttr attr, int *value
  * The OpenGL context will be created with the current states set through
  * The OpenGL context will be created with the current states set through
  * SDL_GL_SetAttribute().
  * SDL_GL_SetAttribute().
  *
  *
+ * The SDL_Window specified must have been created with the SDL_WINDOW_OPENGL
+ * flag, or context creation will fail.
+ *
  * Windows users new to OpenGL should note that, for historical reasons, GL
  * Windows users new to OpenGL should note that, for historical reasons, GL
  * functions added after OpenGL version 1.1 are not available by default.
  * functions added after OpenGL version 1.1 are not available by default.
  * Those functions must be loaded at run-time, either with an OpenGL
  * Those functions must be loaded at run-time, either with an OpenGL