diff --git a/cogl/cogl-draw-buffer.c b/cogl/cogl-draw-buffer.c index 2a7b75784..d32d32500 100644 --- a/cogl/cogl-draw-buffer.c +++ b/cogl/cogl-draw-buffer.c @@ -265,7 +265,8 @@ cogl_offscreen_new_to_texture (CoglHandle texhandle) if (!cogl_texture_get_gl_texture (texhandle, &tex_gl_handle, &tex_gl_target)) return COGL_INVALID_HANDLE; - if (tex_gl_target != GL_TEXTURE_2D) + if (tex_gl_target != GL_TEXTURE_2D && + tex_gl_target != GL_TEXTURE_RECTANGLE_ARB) return COGL_INVALID_HANDLE; /* Create a renderbuffer for stenciling */