Browse Source

Corrected issue, flag not supported...

...by emscripten glfw javascript implementation
Ray San 7 năm trước cách đây
mục cha
commit
0c01c08718
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/core.c

+ 2 - 0
src/core.c

@@ -1901,8 +1901,10 @@ static bool InitGraphicsDevice(int width, int height)
     if (configFlags & FLAG_WINDOW_UNDECORATED) glfwWindowHint(GLFW_DECORATED, GL_FALSE);    // Border and buttons on Window
     else glfwWindowHint(GLFW_DECORATED, GL_TRUE);   // Decorated window
     
+#if !defined(PLATFORM_WEB)  // FLAG_WINDOW_TRANSPARENT not supported on HTML5
     if (configFlags & FLAG_WINDOW_TRANSPARENT) glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_TRUE);     // Transparent framebuffer
     else glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GLFW_FALSE);  // Opaque framebuffer
+#endif
 
     if (configFlags & FLAG_MSAA_4X_HINT) glfwWindowHint(GLFW_SAMPLES, 4);   // Tries to enable multisampling x4 (MSAA), default is 0