| 736 | } |
| 737 | |
| 738 | void 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 | |
| 747 | std::string OpenGLBackend::GetDriverName() |
| 748 | { |