diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml
index 2b277a081b9..cb94a5c91d7 100644
--- a/src/mesa/main/APIspec.xml
+++ b/src/mesa/main/APIspec.xml
@@ -3114,11 +3114,6 @@
-
-
-
-
-
@@ -3212,11 +3207,6 @@
-
-
-
-
-
@@ -3233,11 +3223,6 @@
-
-
-
-
-
@@ -3269,11 +3254,6 @@
-
-
-
-
-
@@ -3284,11 +3264,6 @@
-
-
-
-
-
@@ -3300,11 +3275,6 @@
-
-
-
-
-
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 2e0af97f4d3..6e54c09d7c7 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -194,9 +194,11 @@ get_framebuffer_target(struct gl_context *ctx, GLenum target)
{
switch (target) {
case GL_DRAW_FRAMEBUFFER:
- return ctx->Extensions.EXT_framebuffer_blit ? ctx->DrawBuffer : NULL;
+ return ctx->Extensions.EXT_framebuffer_blit && ctx->API == API_OPENGL
+ ? ctx->DrawBuffer : NULL;
case GL_READ_FRAMEBUFFER:
- return ctx->Extensions.EXT_framebuffer_blit ? ctx->ReadBuffer : NULL;
+ return ctx->Extensions.EXT_framebuffer_blit && ctx->API == API_OPENGL
+ ? ctx->ReadBuffer : NULL;
case GL_FRAMEBUFFER_EXT:
return ctx->DrawBuffer;
default: