mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 20:20:18 +01:00
progs/vpglsl: Assign glGetUniformLocationARB return value to GLint.
The return type of glGetUniformLocationARB is GLint, not GLuint.
This commit is contained in:
parent
8d2f3434c5
commit
d642edd2d1
1 changed files with 6 additions and 6 deletions
|
|
@ -84,9 +84,9 @@ static void check_link(GLuint prog)
|
||||||
static void setup_uniforms()
|
static void setup_uniforms()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
GLuint loc1f = glGetUniformLocationARB(program, "Offset1f");
|
GLint loc1f = glGetUniformLocationARB(program, "Offset1f");
|
||||||
GLuint loc2f = glGetUniformLocationARB(program, "Offset2f");
|
GLint loc2f = glGetUniformLocationARB(program, "Offset2f");
|
||||||
GLuint loc4f = glGetUniformLocationARB(program, "Offset4f");
|
GLint loc4f = glGetUniformLocationARB(program, "Offset4f");
|
||||||
GLfloat vecKer[] =
|
GLfloat vecKer[] =
|
||||||
{ 1.0, 0.0, 0.0, 1.0,
|
{ 1.0, 0.0, 0.0, 1.0,
|
||||||
0.0, 1.0, 0.0, 1.0,
|
0.0, 1.0, 0.0, 1.0,
|
||||||
|
|
@ -105,9 +105,9 @@ static void setup_uniforms()
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
GLuint loc1f = glGetUniformLocationARB(program, "KernelValue1f");
|
GLint loc1f = glGetUniformLocationARB(program, "KernelValue1f");
|
||||||
GLuint loc2f = glGetUniformLocationARB(program, "KernelValue2f");
|
GLint loc2f = glGetUniformLocationARB(program, "KernelValue2f");
|
||||||
GLuint loc4f = glGetUniformLocationARB(program, "KernelValue4f");
|
GLint loc4f = glGetUniformLocationARB(program, "KernelValue4f");
|
||||||
GLfloat vecKer[] =
|
GLfloat vecKer[] =
|
||||||
{ 1.0, 0.0, 0.0, 0.25,
|
{ 1.0, 0.0, 0.0, 0.25,
|
||||||
0.0, 1.0, 0.0, 0.25,
|
0.0, 1.0, 0.0, 0.25,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue