summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-10-16 23:49:31 +0200
committerRay <[email protected]>2021-10-16 23:49:31 +0200
commit99f6707e2c80be2ac4c169fd6986ff2fd8d181a7 (patch)
tree61ce449d640c831d1b9d16f7bad898b638b2c991 /src/rcore.c
parente36dc01b917112a0547f53687244cccc612eb21a (diff)
downloadraylib-99f6707e2c80be2ac4c169fd6986ff2fd8d181a7.tar.gz
raylib-99f6707e2c80be2ac4c169fd6986ff2fd8d181a7.zip
Support OpenGL 4.3
- Support Compute Shaders by rlgl API - Support SSBO by rlgl API
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 1e4047c7..44388c39 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3758,6 +3758,13 @@ static bool InitGraphicsDevice(int width, int height)
#endif
//glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE); // Request OpenGL DEBUG context
}
+ else if (rlGetVersion() == OPENGL_43)
+ {
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); // Choose OpenGL major version (just hint)
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); // Choose OpenGL minor version (just hint)
+ glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
+ glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_FALSE);
+ }
else if (rlGetVersion() == OPENGL_ES_20) // Request OpenGL ES 2.0 context
{
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);