GLUtil: Encapsulate functions in a namespace

This commit is contained in:
Stenzek
2018-03-10 14:52:48 +10:00
parent e31cc1f679
commit 51a586d11a
4 changed files with 11 additions and 12 deletions

View File

@ -15,7 +15,7 @@ std::unique_ptr<SWOGLWindow> SWOGLWindow::s_instance;
void SWOGLWindow::Init(void* window_handle)
{
InitInterface();
GLUtil::InitInterface();
GLInterface->SetMode(GLInterfaceMode::MODE_DETECT);
if (!GLInterface->Create(window_handle))
{
@ -71,7 +71,7 @@ void SWOGLWindow::Prepare()
"#version 300 es\n"
"precision highp float;\n";
m_image_program = OpenGL_CompileProgram(header + vertex_shader, header + frag_shader);
m_image_program = GLUtil::CompileProgram(header + vertex_shader, header + frag_shader);
glUseProgram(m_image_program);