Lines Matching refs:m_ctx
2371 sglr::Context* m_ctx; member in deqp::gles31::Functional::__anon50158a9c0111::NegativeDrawCase
2379 , m_ctx (DE_NULL) in NegativeDrawCase()
2396 …m_ctx = new sglr::GLContext(m_context.getRenderContext(), m_testCtx.getLog(), sglr::GLCONTEXT_LOG… in init()
2402 delete m_ctx; in deinit()
2405 m_ctx = NULL; in deinit()
2411 const GLuint programId = m_ctx->createProgram(m_program); in iterate()
2412 const GLint attrPosLoc = m_ctx->getAttribLocation(programId, "a_position"); in iterate()
2419 m_ctx->genVertexArrays(1, &vaoId); in iterate()
2420 m_ctx->bindVertexArray(vaoId); in iterate()
2422 m_ctx->genBuffers(1, &vertexPosBuf); in iterate()
2423 m_ctx->bindBuffer(GL_ARRAY_BUFFER, vertexPosBuf); in iterate()
2424 m_ctx->bufferData(GL_ARRAY_BUFFER, sizeof(tcu::Vec4), vertexPosData.m_data, GL_STATIC_DRAW); in iterate()
2425 m_ctx->vertexAttribPointer(attrPosLoc, 4, GL_FLOAT, GL_FALSE, 0, DE_NULL); in iterate()
2426 m_ctx->enableVertexAttribArray(attrPosLoc); in iterate()
2428 m_ctx->clearColor(0, 0, 0, 1); in iterate()
2429 m_ctx->clear(GL_COLOR_BUFFER_BIT); in iterate()
2431 m_ctx->viewport(0, 0, 1, 1); in iterate()
2433 m_ctx->useProgram(programId); in iterate()
2436 glu::checkError(m_ctx->getError(), "", __FILE__, __LINE__); in iterate()
2438 m_ctx->drawArrays(m_inputPrimitives, 0, 1); in iterate()
2440 errorCode = m_ctx->getError(); in iterate()
2451 m_ctx->useProgram(0); in iterate()
2453 m_ctx->disableVertexAttribArray(attrPosLoc); in iterate()
2454 m_ctx->deleteBuffers(1, &vertexPosBuf); in iterate()
2456 m_ctx->deleteVertexArrays(1, &vaoId); in iterate()