summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-03 15:20:27 +0100
committerErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-06 09:56:13 +0100
commit604a8fb2b457ea80ee9ec5e86315ff350aab6ee7 (patch)
tree0c6fc72e59f7d0cd41eb3a2476e5872e3b7fa5da
parentbcb82b195ffcc68a97fb79ad2f2ce7086dec7e62 (diff)
downloadmesa-demos-604a8fb2b457ea80ee9ec5e86315ff350aab6ee7.tar.gz
util: use gl2 program-parameters
There's no good reason to use the ARB versions instead of the non-ARB versions. Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
-rw-r--r--src/util/shaderutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/shaderutil.c b/src/util/shaderutil.c
index 4842ab9f..2c0dfb0a 100644
--- a/src/util/shaderutil.c
+++ b/src/util/shaderutil.c
@@ -227,9 +227,9 @@ LinkShaders3WithGeometryInfo(GLuint vertShader, GLuint geomShader, GLuint fragSh
AttachShader(program, vertShader);
if (geomShader) {
AttachShader(program, geomShader);
- glProgramParameteriARB(program, GL_GEOMETRY_VERTICES_OUT_ARB, verticesOut);
- glProgramParameteriARB(program, GL_GEOMETRY_INPUT_TYPE_ARB, inputType);
- glProgramParameteriARB(program, GL_GEOMETRY_OUTPUT_TYPE_ARB, outputType);
+ glProgramParameteri(program, GL_GEOMETRY_VERTICES_OUT, verticesOut);
+ glProgramParameteri(program, GL_GEOMETRY_INPUT_TYPE, inputType);
+ glProgramParameteri(program, GL_GEOMETRY_OUTPUT_TYPE, outputType);
}
if (fragShader)
AttachShader(program, fragShader);