gsdx-ogl: use less verbose code

This commit is contained in:
Gregory Hainaut 2015-04-30 19:35:06 +02:00
parent f0181d98fd
commit 7887d7b5a5
1 changed files with 35 additions and 35 deletions

View File

@ -23,48 +23,48 @@
#include "GLState.h" #include "GLState.h"
namespace GLState { namespace GLState {
GLuint fbo = 0; GLuint fbo;
GSVector2i viewport(0, 0); GSVector2i viewport;
GSVector4i scissor(0, 0, 0, 0); GSVector4i scissor;
bool blend = false; bool blend;
GLenum eq_RGB = 0; GLenum eq_RGB;
GLenum eq_A = 0; GLenum eq_A ;
GLenum f_sRGB = 0; GLenum f_sRGB;
GLenum f_dRGB = 0; GLenum f_dRGB;
GLenum f_sA = 0; GLenum f_sA;
GLenum f_dA = 0; GLenum f_dA;
bool r_msk = true; bool r_msk;
bool g_msk = true; bool g_msk;
bool b_msk = true; bool b_msk;
bool a_msk = true; bool a_msk;
float bf = 0.0; float bf;
bool depth = false; bool depth;
GLenum depth_func = 0; GLenum depth_func;
bool depth_mask = false; bool depth_mask;
bool stencil = false; bool stencil;
GLenum stencil_func = 0; GLenum stencil_func;
GLenum stencil_pass = 0; GLenum stencil_pass;
GLuint ubo = 0; GLuint ubo;
GLuint ps_ss = 0; GLuint ps_ss;
GLuint rt = 0; GLuint rt;
GLuint ds = 0; GLuint ds;
GLuint tex_unit[4] = {0, 0, 0, 0}; GLuint tex_unit[4];
GLuint64 tex_handle[4] = { 0, 0, 0, 0}; GLuint64 tex_handle[4];
bool dirty_ressources = false; bool dirty_ressources;
GLuint ps = 0; GLuint ps;
GLuint gs = 0; GLuint gs;
GLuint vs = 0; GLuint vs;
GLuint program = 0; GLuint program;
bool dirty_prog = false; bool dirty_prog;
bool dirty_subroutine_vs = false; bool dirty_subroutine_vs;
bool dirty_subroutine_ps = false; bool dirty_subroutine_ps;
#if 0 #if 0
struct { struct {
GSVertexBufferStateOGL* vb; GSVertexBufferStateOGL* vb;