MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / PrepareContext

Method PrepareContext

src/video/opengl.cpp:738–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738void OpenGLBackend::PrepareContext()
739{
740 _glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
741 _glDisable(GL_DEPTH_TEST);
742 /* Enable alpha blending using the src alpha factor. */
743 _glEnable(GL_BLEND);
744 _glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
745}
746
747std::string OpenGLBackend::GetDriverName()
748{

Callers 1

InitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected