aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay San <raysan5@gmail.com>2018-06-12 13:21:36 +0200
committerRay San <raysan5@gmail.com>2018-06-12 13:21:36 +0200
commit0c01c08718fbf42e090bdde82fa357101d6a4fd0 (patch)
tree68cc1d0a9047207ad19a662a6b7a8b3c4d2c440c /src
parent59fd2614916249ad5a229f032cb92f34692ca29b (diff)
downloadraylib-0c01c08718fbf42e090bdde82fa357101d6a4fd0.tar.gz
raylib-0c01c08718fbf42e090bdde82fa357101d6a4fd0.zip
Corrected issue, flag not supported...
...by emscripten glfw javascript implementation
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 1f9159f9..3dbe4199 100644
--- a/src/core.c
+++ b/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