Skip to content

Commit

Permalink
Update to OpenGL 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pragma37 committed Apr 2, 2023
1 parent cd75755 commit c9604b0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Bridge/Server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Malt/GL/Shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions Malt/GL/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*.
Expand Down Expand Up @@ -90,4 +89,3 @@ result_target.bind()
shader.bind()
mesh.draw()
```

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/Documentation/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c9604b0

Please sign in to comment.