mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-20 06:24:17 +00:00
gl_rasterizer: move state syncing from ctor to its own function
This commit is contained in:
parent
c2719feda2
commit
0d84c5a0b6
2 changed files with 9 additions and 2 deletions
|
@ -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):
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue