OPENGL: Make shader/framebuffer part of pipeline state.
This commit is contained in:
parent
0b46af2f0e
commit
0fe580d10c
8 changed files with 126 additions and 69 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue