mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
app/internal/gpu: query GL_EXTENSIONS correctly on macOS
macOS supports the OpenGL core profiles where glGetString(GL_EXTENSIONS) is not supported. Use glGetStringi(GL_EXTENSIONS, <index>) instead. The wrong query didn't make any practical difference because Gio doesn't need any extensions on OpenGL 3 and better. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -37,6 +37,7 @@ const (
|
||||
MAX_TEXTURE_SIZE = 0xd33
|
||||
NEAREST = 0x2600
|
||||
NO_ERROR = 0x0
|
||||
NUM_EXTENSIONS = 0x821D
|
||||
ONE = 0x1
|
||||
ONE_MINUS_SRC_ALPHA = 0x303
|
||||
QUERY_RESULT = 0x8866
|
||||
|
||||
Reference in New Issue
Block a user