make use of glMapBuffer to set ubo data

This commit is contained in:
Jordan Woyak authored and Sonicadvance1 committed 2012-10-09 23:41:48 -05:00
1 parent 04836705b7
commit e641ede232
3 files changed
+55 -7

No files matched your search

@@ -96,6 +96,7 @@ class ProgramShaderCache
static std::pair<u64, u64> CurrentShaderProgram;
static GLuint s_ps_ubo, s_vs_ubo;
static float *s_ps_mapped_data, *s_vs_mapped_data;
public:
static PROGRAMSHADER GetShaderProgram(void);
static GLint GetAttr(int num);
@@ -104,6 +105,8 @@ public:
static void SetMultiPSConstant4fv(unsigned int offset, const float *f, unsigned int count);
static void SetMultiVSConstant4fv(unsigned int offset, const float *f, unsigned int count);
static void FlushConstants();
static void Init(void);
static void Shutdown(void);