From bdb2be8f9e003b4637d339546b1b043e85a7f03c Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 9 Oct 2022 02:50:39 +0200 Subject: [PATCH] LibGL: Remove context initialization from tests We are either not using these defaults or they are already the `GLContext`'s defaults to begin with. --- Tests/LibGL/TestRender.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Tests/LibGL/TestRender.cpp b/Tests/LibGL/TestRender.cpp index 6c26212210..b4a80c3ea1 100644 --- a/Tests/LibGL/TestRender.cpp +++ b/Tests/LibGL/TestRender.cpp @@ -26,15 +26,6 @@ static NonnullOwnPtr create_testing_context(int width, int height auto bitmap = MUST(Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, { width, height })); auto context = MUST(GL::create_context(*bitmap)); GL::make_context_current(context); - - // Assume some defaults for our testing contexts - glFrontFace(GL_CCW); - glCullFace(GL_BACK); - glEnable(GL_CULL_FACE); - - glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - glClear(GL_COLOR_BUFFER_BIT); - return context; }