[problem] Test cases rely on shader loading being immediate
[cause] Shader loading has changed to lazy load, context
relies on GlContextCreated() being called.
[solution] Fixup test setup.
Change-Id: I28c5f86873949b821386b941e26228775bb4d5ab
Signed-off-by: David Steele <david.steele@partner.samsung.com>
: app(application)
{
Internal::Context* testContext = new Internal::Context( application.GetGlAbstraction() );
+ testContext->GlContextCreated();
+
Integration::ShaderDataPtr shaderData = new Integration::ShaderData("123", "132");
shaderData->AllocateBuffer(10);
Integration::ResourceId resourceId = 100;
program = Internal::Program::New(resourceId, shaderData.Get(), *testContext, true);
+ program->Use(); // Ensure program lazy loading is forced to load program.
programId = app.GetGlAbstraction().GetLastProgramCreated();
- program->Use();
}
virtual ~TestProgram()