mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
Revert "mesa: return initial value for VALIDATE_STATUS if pipe not bound"
This reverts commitba02f7a3b6. The commit checked whether the pipeline was currently bound instead of checking whether it had ever been bound. The previous setting of Validated during object creation makes this unnecessary. The real problem was that Validated was not properly set to false elsewhere in the code. This is fixed by a later patch. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Cc: "11.1" <mesa-stable@lists.freedesktop.org> (cherry picked from commit3c4aa7aff2)
This commit is contained in:
parent
bb7a1ee11f
commit
88fd679706
1 changed files with 1 additions and 2 deletions
|
|
@ -645,8 +645,7 @@ _mesa_GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params)
|
|||
*params = pipe->InfoLog ? strlen(pipe->InfoLog) + 1 : 0;
|
||||
return;
|
||||
case GL_VALIDATE_STATUS:
|
||||
/* If pipeline is not bound, return initial value 0. */
|
||||
*params = (ctx->_Shader->Name != pipe->Name) ? 0 : pipe->Validated;
|
||||
*params = pipe->Validated;
|
||||
return;
|
||||
case GL_VERTEX_SHADER:
|
||||
*params = pipe->CurrentProgram[MESA_SHADER_VERTEX]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue