Jelajahi Sumber

LibGL: Remove context initialization from tests

We are either not using these defaults or they are already the
`GLContext`'s defaults to begin with.
Jelle Raaijmakers 2 tahun lalu
induk
melakukan
bdb2be8f9e
1 mengubah file dengan 0 tambahan dan 9 penghapusan
  1. 0 9
      Tests/LibGL/TestRender.cpp

+ 0 - 9
Tests/LibGL/TestRender.cpp

@@ -26,15 +26,6 @@ static NonnullOwnPtr<GL::GLContext> 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;
 }