citra-emu
/
citra
Archived
1
0
Fork 0

gl_rasterizer: move state syncing from ctor to its own function

This commit is contained in:
wwylele 2018-04-04 17:23:55 +03:00
parent c2719feda2
commit 0d84c5a0b6
2 changed files with 9 additions and 2 deletions

View File

@ -174,6 +174,12 @@ RasterizerOpenGL::RasterizerOpenGL() : shader_dirty(true) {
glEnable(GL_BLEND); glEnable(GL_BLEND);
SyncEntireState();
}
RasterizerOpenGL::~RasterizerOpenGL() {}
void RasterizerOpenGL::SyncEntireState() {
// Sync fixed function OpenGL state // Sync fixed function OpenGL state
SyncClipEnabled(); SyncClipEnabled();
SyncCullMode(); SyncCullMode();
@ -212,8 +218,6 @@ RasterizerOpenGL::RasterizerOpenGL() : shader_dirty(true) {
SyncProcTexNoise(); SyncProcTexNoise();
} }
RasterizerOpenGL::~RasterizerOpenGL() {}
/** /**
* This is a helper function to resolve an issue when interpolating opposite quaternions. See below * This is a helper function to resolve an issue when interpolating opposite quaternions. See below
* for a detailed description of this issue (yuriks): * for a detailed description of this issue (yuriks):

View File

@ -162,6 +162,9 @@ private:
static_assert(sizeof(UniformData) < 16384, static_assert(sizeof(UniformData) < 16384,
"UniformData structure must be less than 16kb as per the OpenGL spec"); "UniformData structure must be less than 16kb as per the OpenGL spec");
/// Syncs entire status to match PICA registers
void SyncEntireState();
/// Syncs the clip enabled status to match the PICA register /// Syncs the clip enabled status to match the PICA register
void SyncClipEnabled(); void SyncClipEnabled();