summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2018-07-29 12:56:19 +0200
committerGitHub <[email protected]>2018-07-29 12:56:19 +0200
commit6905a875eda7e1ac85b768f5aa4e07dc92537bdb (patch)
treef8bf880840312d42478043a04bc7f273f892b180 /src/core.c
parentcf021e38117723b655a2399e62f8d5f87ce3d413 (diff)
parent5a94a280d0a7d2866a12e6f9144401881e17de02 (diff)
downloadraylib-6905a875eda7e1ac85b768f5aa4e07dc92537bdb.tar.gz
raylib-6905a875eda7e1ac85b768f5aa4e07dc92537bdb.zip
Merge pull request #608 from a3f/master
CMake: Major cleanup to support find_package(raylib)
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 6939b844..aa76e88c 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1915,14 +1915,14 @@ 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
+ // FLAG_WINDOW_TRANSPARENT not supported on HTML5 and not included in any released GLFW version yet
+#if defined(GLFW_TRANSPARENT_FRAMEBUFFER)
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
-
+
// NOTE: When asking for an OpenGL context version, most drivers provide highest supported version
// with forward compatibility to older OpenGL versions.
// For example, if using OpenGL 1.1, driver can provide a 4.3 context forward compatible.