From c9604b0de60d8074a41931c54e84c47ccbce5666 Mon Sep 17 00:00:00 2001 From: Miguel Pozo Date: Sun, 2 Apr 2023 20:06:29 +0200 Subject: [PATCH] Update to OpenGL 4.5 --- Bridge/Server.py | 2 +- Malt/GL/Shader.py | 2 +- Malt/GL/readme.md | 2 -- README.md | 4 ++-- docs/Documentation/Getting Started.md | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Bridge/Server.py b/Bridge/Server.py index a3e81e21..f8da18e3 100644 --- a/Bridge/Server.py +++ b/Bridge/Server.py @@ -287,7 +287,7 @@ def main(pipeline_path, viewport_bit_depth, connection_addresses, glfw.init() glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 4) - glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 1) + glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 5) glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE) window = glfw.create_window(256, 256, 'Malt', None, None) diff --git a/Malt/GL/Shader.py b/Malt/GL/Shader.py index 6cb62b3e..949f2402 100644 --- a/Malt/GL/Shader.py +++ b/Malt/GL/Shader.py @@ -273,7 +273,7 @@ def finalize_source(source): ''' import textwrap source = textwrap.dedent(f''' - #version 410 core + #version 450 core #extension GL_ARB_shading_language_include : enable {bindless_setup} #line 1 "src" diff --git a/Malt/GL/readme.md b/Malt/GL/readme.md index d9592533..74b538b3 100644 --- a/Malt/GL/readme.md +++ b/Malt/GL/readme.md @@ -2,7 +2,6 @@ The GL folder contains a series of modules that abstracts commonly needed OpenGL functionality. It doesn't try to be a complete abstraction, so it's meant to be used alongside raw OpenGL calls. -> 💡 Malt limits itself to OpenGL 4.1 features to keep MacOS compatibility. ## [GL.py](GL.py) Loads OpenGL functions via [PyOpenGL](https://pypi.org/project/PyOpenGL/), provides OpenGL enums reflection dictionaries and implements a Python to OpenGL types conversion function via the *gl_buffer function*. @@ -90,4 +89,3 @@ result_target.bind() shader.bind() mesh.draw() ``` - diff --git a/README.md b/README.md index c0fb3972..3a9e04c0 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ Malt is software agnostic, but Blender is the only integration planned right now ## Requirements -- OpenGL 4.1+ -- Blender 3.4 +- OpenGL 4.5 +- Latest Blender stable release. - Windows or Linux > A dedicated Nvidia or AMD graphics card is highly recomended. diff --git a/docs/Documentation/Getting Started.md b/docs/Documentation/Getting Started.md index 9726d7cc..97c83bee 100644 --- a/docs/Documentation/Getting Started.md +++ b/docs/Documentation/Getting Started.md @@ -2,7 +2,7 @@ ## Requirements -- OpenGL 4.1 support. +- OpenGL 4.5 support. - Latest Blender stable release. > A dedicated Nvidia or AMD graphics card is highly recomended.