summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-05-08 12:01:33 +1000
committerTimothy Arceri <[email protected]>2017-05-17 10:12:03 +1000
commit3336d248e833280badcae52909b5b2e69f359d8b (patch)
treebd14c757b3d3cf191abf87d3552a0d556435046b /src/mesa
parent4e8aa4b9a205a21f1f87e29557e796d8664fa131 (diff)
mesa: add KHR_no_error support for NamedFramebufferTexture
V3: use frame_buffer_texture() helper Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/fbobject.c8
-rw-r--r--src/mesa/main/fbobject.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 82fec792bbd..74b38180900 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -3571,6 +3571,14 @@ _mesa_FramebufferTexture(GLenum target, GLenum attachment,
"glFramebufferTexture", false, false, true);
}
+void GLAPIENTRY
+_mesa_NamedFramebufferTexture_no_error(GLuint framebuffer, GLenum attachment,
+ GLuint texture, GLint level)
+{
+ frame_buffer_texture(framebuffer, 0, attachment, texture, level, 0,
+ "glNamedFramebufferTexture", true, true, true);
+}
+
void GLAPIENTRY
_mesa_NamedFramebufferTexture(GLuint framebuffer, GLenum attachment,
diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h
index 1d064f8ee0a..1c9056dae7e 100644
--- a/src/mesa/main/fbobject.h
+++ b/src/mesa/main/fbobject.h
@@ -265,6 +265,9 @@ _mesa_FramebufferTexture(GLenum target, GLenum attachment,
GLuint texture, GLint level);
extern void GLAPIENTRY
+_mesa_NamedFramebufferTexture_no_error(GLuint framebuffer, GLenum attachment,
+ GLuint texture, GLint level);
+extern void GLAPIENTRY
_mesa_NamedFramebufferTexture(GLuint framebuffer, GLenum attachment,
GLuint texture, GLint level);