Skip to content

Commit

Permalink
Fixed Testbed for CIS builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Aug 2, 2023
1 parent 06f5505 commit 44879f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ jobs:

- name: Testbed
working-directory: tests/Testbed
run: mkdir Output
run: mkdir Output/OpenGL
run: xvfb-run ${{github.workspace}}/build/build/TestbedD gl -v -f

2 changes: 1 addition & 1 deletion sources/Renderer/OpenGL/Texture/GLRenderTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void GLRenderTarget::SetDrawBuffers()

static void GLThrowIfFramebufferStatusFailed(const char* info)
{
auto status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
const GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
GLThrowIfFailed(status, GL_FRAMEBUFFER_COMPLETE, info);
}

Expand Down
8 changes: 8 additions & 0 deletions tests/Testbed/TestbedContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,14 @@ TestResult TestbedContext::CreateRenderTarget(
const char* name,
LLGL::RenderTarget** output)
{
#if 1 //TODO: make this optional only for CIS logs
if (name != nullptr)
{
Log::Printf("Creating render target: %s\n", name);
fflush(stdout);
}
#endif

// Create render target
RenderTarget* target = renderer->CreateRenderTarget(desc);

Expand Down

0 comments on commit 44879f4

Please sign in to comment.