Draw Manager: OpenGL render support

Works for clay-engine but doesn't draw objects with eevee.
This commit is contained in:
2017-05-03 02:50:29 +10:00
parent 2b0f02057f
commit 3f567535da
7 changed files with 87 additions and 1 deletions

View File

@@ -682,3 +682,12 @@ int GPU_offscreen_color_texture(const GPUOffScreen *ofs)
return GPU_texture_opengl_bindcode(ofs->color);
}
/* only to be used by viewport code! */
void GPU_offscreen_viewport_data_get(
GPUOffScreen *ofs,
GPUFrameBuffer **r_fb, GPUTexture **r_color, GPUTexture **r_depth)
{
*r_fb = ofs->fb;
*r_color = ofs->color;
*r_depth = ofs->depth;
}