emulator opengl: Added glFinishRoundTrip implementation.
This is to allow glFinish to wait for the host render to finish. Change-Id: I43e23aee19700b79bc70c89e791df180c6c1fb91
This commit is contained in:
committed by
Guy Zadikario
parent
903945c963
commit
a6882bf79d
@@ -467,6 +467,7 @@ GLEncoder::GLEncoder(IOStream *stream) : gl_encoder_context_t(stream)
|
||||
m_glDrawArrays_enc = set_glDrawArrays(s_glDrawArrays);
|
||||
m_glDrawElements_enc = set_glDrawElements(s_glDrawElements);
|
||||
set_glGetString(s_glGetString);
|
||||
set_glFinish(s_glFinish);
|
||||
|
||||
}
|
||||
|
||||
@@ -480,3 +481,9 @@ size_t GLEncoder::pixelDataSize(GLsizei width, GLsizei height, GLenum format, GL
|
||||
assert(m_state != NULL);
|
||||
return m_state->pixelDataSize(width, height, format, type, pack);
|
||||
}
|
||||
|
||||
void GLEncoder::s_glFinish(void *self)
|
||||
{
|
||||
GLEncoder *ctx = (GLEncoder *)self;
|
||||
ctx->glFinishRoundTrip(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user