OPENGL: Make shader/framebuffer part of pipeline state.

This commit is contained in:
Johannes Schickel 2016-01-04 11:38:21 +01:00
parent 0b46af2f0e
commit 0fe580d10c
8 changed files with 126 additions and 69 deletions

View file

@ -124,19 +124,6 @@ struct Context {
#include "backends/graphics/opengl/opengl-func.h"
#undef GL_FUNC_DEF
/** Currently active framebuffer. */
Framebuffer *activeFramebuffer;
/**
* Set new framebuffer.
*
* Client is responsible for any memory management related to framebuffers.
*
* @param framebuffer Framebuffer to activate.
* @return Formerly active framebuffer.
*/
Framebuffer *setFramebuffer(Framebuffer *framebuffer);
//
// Wrapper functionality to handle fixed-function pipelines and
// programmable pipelines in the same fashion.