mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-14 20:03:29 +00:00
LibGL: Remove context initialization from tests
We are either not using these defaults or they are already the `GLContext`'s defaults to begin with.
This commit is contained in:
parent
4e63ce231f
commit
bdb2be8f9e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue