X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=apps%2Fegl%2Fgl%2Ftri_glsl.ref.txt;h=4af5cbe32e23acdfe34638273b05eb5779c722ac;hp=c82f8f328a302e19b3995323b9a6885d6c4c8b56;hb=284a55f9ccdf99f4a6f71acf0d90d15c2be3d62f;hpb=a7fed0ca7137f09c44c4dfe7fd7619cf19965bb4 diff --git a/apps/egl/gl/tri_glsl.ref.txt b/apps/egl/gl/tri_glsl.ref.txt index c82f8f3..4af5cbe 100644 --- a/apps/egl/gl/tri_glsl.ref.txt +++ b/apps/egl/gl/tri_glsl.ref.txt @@ -23,26 +23,23 @@ glGetShaderiv(shader = 2, pname = GL_COMPILE_STATUS, params = &1) glCreateProgram() = 3 glAttachShader(program = 3, shader = 1) glAttachShader(program = 3, shader = 2) -glBindAttribLocation(program = 3, index = 1, name = "pos") -glBindAttribLocation(program = 3, index = 0, name = "color") -glLinkProgram(program = 3) -glGetProgramiv(program = 3, pname = GL_LINK_STATUS, params = &1) -glUseProgram(program = 3) -glBindAttribLocation(program = 3, index = 0, name = "pos") -glBindAttribLocation(program = 3, index = 1, name = "color") glBindAttribLocation(program = 3, index = 0, name = "pos") glBindAttribLocation(program = 3, index = 1, name = "color") glLinkProgram(program = 3) +glGetProgramiv(program = 3, pname = GL_LINK_STATUS, params = &1) +glUseProgram(program = 3) +glGetAttribLocation(program = 3, name = "pos") = 0 +glGetAttribLocation(program = 3, name = "color") = 1 glGetUniformLocation(program = 3, name = "modelviewProjection") = 0 glViewport(x = 0, y = 0, width = 300, height = 300) glViewport(x = 0, y = 0, width = 300, height = 300) glViewport(x = 0, y = 0, width = 300, height = 300) -glUniformMatrix4fv(location = 0, count = 1, transpose = false, value = {0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 1}) +glUniformMatrix4fv(location = 0, count = 1, transpose = GL_FALSE, value = {0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 1}) glClear(mask = GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT) glEnableVertexAttribArray(index = 0) glEnableVertexAttribArray(index = 1) -glVertexAttribPointer(index = 0, size = 2, type = GL_FLOAT, normalized = false, stride = 0, pointer = blob(24)) -glVertexAttribPointer(index = 1, size = 3, type = GL_FLOAT, normalized = false, stride = 0, pointer = blob(36)) +glVertexAttribPointer(index = 0, size = 2, type = GL_FLOAT, normalized = GL_FALSE, stride = 0, pointer = blob(24)) +glVertexAttribPointer(index = 1, size = 3, type = GL_FLOAT, normalized = GL_FALSE, stride = 0, pointer = blob(36)) glDrawArrays(mode = GL_TRIANGLES, first = 0, count = 3) glDisableVertexAttribArray(index = 0) glDisableVertexAttribArray(index = 1)