소스 검색

mesa: return INVALID_VALUE from WaitSync if timeout != GL_TIMEOUT_IGNORED

This was added in version 22 of the GL_ARB_sync spec.

Fixes gles3conform's sync_error_waitsync_timeout test.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/gles3-fmt-v1
Matt Turner 12 년 전
부모
커밋
47d862517e
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2
    5
      src/mesa/main/syncobj.c

+ 2
- 5
src/mesa/main/syncobj.c 파일 보기

@@ -356,11 +356,8 @@ _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
return;
}

/* From the GL_ARB_sync spec:
*
* If the value of <timeout> is zero, then WaitSync does nothing.
*/
if (timeout == 0) {
if (timeout != GL_TIMEOUT_IGNORED) {
_mesa_error(ctx, GL_INVALID_VALUE, "glWaitSync(timeout=0x%lx)", timeout);
return;
}


Loading…
취소
저장