mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
24 lines
353 B
C++
24 lines
353 B
C++
#include "gl_state.h"
|
|
|
|
OpenGLState glstate;
|
|
|
|
void OpenGLState::Initialize() {
|
|
if(initialized) return;
|
|
|
|
Restore();
|
|
|
|
initialized = true;
|
|
}
|
|
|
|
void OpenGLState::Restore() {
|
|
blend.restore();
|
|
blendEquation.restore();
|
|
blendFunc.restore();
|
|
|
|
cullFace.restore();
|
|
cullFaceMode.restore();
|
|
|
|
depthTest.restore();
|
|
depthRange.restore();
|
|
depthFunc.restore();
|
|
} |