[drape] fix tests

This commit is contained in:
exmix 2014-07-12 17:16:28 +02:00 committed by Alex Zolotarev
parent 7ce8893e7c
commit 3b09dc37f6
2 changed files with 2 additions and 0 deletions

View file

@ -134,6 +134,7 @@ UNIT_TEST(BatchLists_Test)
EXPECTGL(glHasExtension(_)).WillOnce(Return(true));
EXPECTGL(glHasExtension(_)).WillOnce(Return(true));
EXPECTGL(glHasExtension(_)).WillOnce(Return(true));
EXPECTGL(glHasExtension(_)).WillOnce(Return(true));
EXPECTGL(glGenVertexArray()).WillOnce(Return(VaoID));
EXPECTGL(glBindVertexArray(VaoID));

View file

@ -19,6 +19,7 @@ namespace
{
void PrepareOpenGL(int size)
{
EXPECTGL(glHasExtension(_)).Times(AnyNumber());
EXPECTGL(glGetInteger(gl_const::GLMaxTextureSize)).WillOnce(Return(size));
EXPECTGL(glBindTexture(_)).Times(AnyNumber());
EXPECTGL(glDeleteTexture(_)).Times(AnyNumber());