Lines Matching refs:boundBuffer

1914     SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) &&  in s_glTexImage2D()
1919 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexImage2D()
1924 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexImage2D()
1948 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glTexImage2D()
2003 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexSubImage2D()
2008 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexSubImage2D()
2013 SET_ERROR_IF(!ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && !pixels, GL_INVALID_OPERATION); in s_glTexSubImage2D()
2019 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glTexSubImage2D()
2109 GLuint GL2Encoder::boundBuffer(GLenum target) const { in boundBuffer() function in GL2Encoder
2459 GLuint boundBuffer = ctx->m_state->getBuffer(target); in s_glMapBufferRange() local
2461 RET_AND_SET_ERROR_IF(boundBuffer == 0, GL_INVALID_OPERATION, NULL); in s_glMapBufferRange()
2463 BufferData* buf = ctx->m_shared->getBufferData(boundBuffer); in s_glMapBufferRange()
2505 GLuint boundBuffer = ctx->m_state->getBuffer(target); in s_glUnmapBuffer() local
2507 RET_AND_SET_ERROR_IF(boundBuffer == 0, GL_INVALID_OPERATION, GL_FALSE); in s_glUnmapBuffer()
2509 BufferData* buf = ctx->m_shared->getBufferData(boundBuffer); in s_glUnmapBuffer()
2546 GLuint boundBuffer = ctx->m_state->getBuffer(target); in s_glFlushMappedBufferRange() local
2547 SET_ERROR_IF(!boundBuffer, GL_INVALID_OPERATION); in s_glFlushMappedBufferRange()
2549 BufferData* buf = ctx->m_shared->getBufferData(boundBuffer); in s_glFlushMappedBufferRange()
2592 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glCompressedTexImage2D()
2611 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glCompressedTexImage2D()
2640 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glCompressedTexSubImage2D()
2646 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glCompressedTexSubImage2D()
2740 SET_ERROR_IF(!ctx->boundBuffer(readtarget), GL_INVALID_OPERATION); in s_glCopyBufferSubData()
2741 SET_ERROR_IF(!ctx->boundBuffer(writetarget), GL_INVALID_OPERATION); in s_glCopyBufferSubData()
2778 SET_ERROR_IF(!ctx->boundBuffer(target), GL_INVALID_OPERATION); in s_glGetBufferParameteriv()
2830 SET_ERROR_IF(!ctx->boundBuffer(target), GL_INVALID_OPERATION); in s_glGetBufferParameteri64v()
2877 SET_ERROR_IF(!ctx->boundBuffer(target), GL_INVALID_OPERATION); in s_glGetBufferPointerv()
3344 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexImage3D()
3349 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexImage3D()
3361 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glTexImage3D()
3405 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexSubImage3D()
3410 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glTexSubImage3D()
3415 SET_ERROR_IF(!ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && !data, GL_INVALID_OPERATION); in s_glTexSubImage3D()
3418 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glTexSubImage3D()
3444 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glCompressedTexImage3D()
3454 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glCompressedTexImage3D()
3476 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER) && in s_glCompressedTexSubImage3D()
3482 if (ctx->boundBuffer(GL_PIXEL_UNPACK_BUFFER)) { in s_glCompressedTexSubImage3D()
3805 SET_ERROR_IF(ctx->boundBuffer(GL_PIXEL_PACK_BUFFER) && in s_glReadPixels()
3829 if (ctx->boundBuffer(GL_PIXEL_PACK_BUFFER)) { in s_glReadPixels()
4722 SET_ERROR_IF(!ctx->boundBuffer(GL_DRAW_INDIRECT_BUFFER), GL_INVALID_OPERATION); in s_glDrawArraysIndirect()
4725 if (ctx->boundBuffer(GL_DRAW_INDIRECT_BUFFER)) { in s_glDrawArraysIndirect()
4748 SET_ERROR_IF(!ctx->boundBuffer(GL_DRAW_INDIRECT_BUFFER), GL_INVALID_OPERATION); in s_glDrawElementsIndirect()
4753 if (ctx->boundBuffer(GL_DRAW_INDIRECT_BUFFER)) { in s_glDrawElementsIndirect()