mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 12:59:14 +12:00
[GL] Add stencil enable to state tracker
This commit is contained in:
parent
03733569e0
commit
b4cc743608
3 changed files with 25 additions and 3 deletions
|
@ -26,6 +26,11 @@ void GLStateManager::resetScissor() {
|
|||
OpenGL::setScissor(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
void GLStateManager::resetStencil() {
|
||||
stencilEnabled = false;
|
||||
OpenGL::disableStencil();
|
||||
}
|
||||
|
||||
void GLStateManager::resetVAO() {
|
||||
boundVAO = 0;
|
||||
glBindVertexArray(0);
|
||||
|
@ -50,4 +55,5 @@ void GLStateManager::reset() {
|
|||
resetVBO();
|
||||
resetProgram();
|
||||
resetScissor();
|
||||
resetStencil();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue