diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-02-15 15:29:50 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-02-15 15:35:23 +0100 |
commit | a28f496d30d32cf41414e2592711100be0729038 (patch) | |
tree | b66206f42fda725c7d9eb0aeca91cd85e117b011 /test/gl/object.test.cpp | |
parent | 24432e0b9854393655217d1b11374cdb141c9ad0 (diff) | |
download | qtlocation-mapboxgl-upstream/opengl-glTexSubImage2D.tar.gz |
[core] use glTexSubImage2D for subsequent updatesupstream/opengl-glTexSubImage2D
Diffstat (limited to 'test/gl/object.test.cpp')
-rw-r--r-- | test/gl/object.test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/gl/object.test.cpp b/test/gl/object.test.cpp index f1da93f1da..592e7f77d8 100644 --- a/test/gl/object.test.cpp +++ b/test/gl/object.test.cpp @@ -66,9 +66,9 @@ TEST(GLObject, Store) { gl::Context context; EXPECT_TRUE(context.empty()); - gl::UniqueTexture texture = context.createTexture(); - EXPECT_NE(texture.get(), 0u); - texture.reset(); + auto texture = context.createTexture(Size{ 1, 1 }); + EXPECT_NE(texture.texture.get(), 0u); + texture.texture.reset(); EXPECT_FALSE(context.empty()); context.performCleanup(); EXPECT_FALSE(context.empty()); |