core: Implement GL_OES_EGL_image entry points
This commit is contained in:
@@ -1008,6 +1008,30 @@ renderbuffer_storage(GLenum target, GLenum internalFormat,
|
||||
*/
|
||||
}
|
||||
|
||||
#if FEATURE_OES_EGL_image
|
||||
void GLAPIENTRY
|
||||
_mesa_EGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
ASSERT_OUTSIDE_BEGIN_END(ctx);
|
||||
struct gl_renderbuffer *rb;
|
||||
|
||||
if (target != GL_RENDERBUFFER) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "EGLImageTargetRenderbufferStorageOES");
|
||||
return;
|
||||
}
|
||||
|
||||
rb = ctx->CurrentRenderbuffer;
|
||||
if (!rb) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "EGLImageTargetRenderbufferStorageOES");
|
||||
return;
|
||||
}
|
||||
|
||||
FLUSH_VERTICES(ctx, _NEW_BUFFERS);
|
||||
|
||||
ctx->Driver.EGLImageTargetRenderbufferStorage(ctx, rb, image);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Helper function for _mesa_GetRenderbufferParameterivEXT() and
|
||||
|
Reference in New Issue
Block a user