[glfw] Remove GL state restoration

We're doing all of this in our own context anyway, so no need to restore the state
This commit is contained in:
Konstantin Käfer
2017-03-21 15:01:32 +01:00
parent 68e032e505
commit 14bf47c296
3 changed files with 10 additions and 69 deletions

View File

@@ -26,20 +26,6 @@ struct MockGLObject {
const bool MockGLObject::Default = false;
TEST(GLObject, PreserveState) {
getFlag = false;
setFlag = false;
auto object = std::make_unique<gl::PreserveState<MockGLObject>>();
EXPECT_TRUE(getFlag);
EXPECT_FALSE(setFlag);
getFlag = false;
object.reset();
EXPECT_FALSE(getFlag);
EXPECT_TRUE(setFlag);
}
TEST(GLObject, Value) {
setFlag = false;