]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix: correct gl-function loading
authorTryAngle <45734252+TriedAngle@users.noreply.github.com>
Fri, 20 Oct 2023 00:04:40 +0000 (02:04 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Oct 2023 15:21:22 +0000 (08:21 -0700)
suffix appends the "modern" function at the end, which makes it so the old deprecated opengl1 function gets loaded which are not part of the opengl standard anymore and make usage of shader debugger like renderdoc impossible. This fixes it

basis/opengl/gl/extensions/extensions.factor

index a3728d5175f3996a4115ff8d4302dd5ab5d7a655..dd3f1941c212293f4f40d464337601d0e0e5fbea 100644 (file)
@@ -53,6 +53,7 @@ reset-gl-function-number-counter
 SYNTAX: GL-FUNCTION:
     gl-function-calling-convention
     scan-function-name
-    "{" expect "}" parse-tokens over suffix
+    "{" expect "}" parse-tokens over prefix
     gl-function-counter '[ _ _ gl-function-pointer ]
     scan-c-args define-indirect ;
+