瀏覽代碼

Examples: SDL: Initialize video+timer subsystem only.

ocornut 9 年之前
父節點
當前提交
1612ca071b
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/sdl_opengl3_example/main.cpp
  2. 1 1
      examples/sdl_opengl_example/main.cpp

+ 1 - 1
examples/sdl_opengl3_example/main.cpp

@@ -10,7 +10,7 @@
 int main(int, char**)
 {
     // Setup SDL
-    if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
+    if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER) != 0)
     {
         printf("Error: %s\n", SDL_GetError());
         return -1;

+ 1 - 1
examples/sdl_opengl_example/main.cpp

@@ -10,7 +10,7 @@
 int main(int, char**)
 {
     // Setup SDL
-    if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
+    if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER) != 0)
     {
         printf("Error: %s\n", SDL_GetError());
         return -1;