Remove work performed by glad

This commit is contained in:
Camilla Berglund 2016-02-15 08:22:32 +01:00
parent f7228bb562
commit 1e452d5fca

View File

@ -156,14 +156,6 @@ static void list_extensions(int api, int major, int minor)
if (api == GLFW_OPENGL_API && major > 2) if (api == GLFW_OPENGL_API && major > 2)
{ {
PFNGLGETSTRINGIPROC glGetStringi =
(PFNGLGETSTRINGIPROC) glfwGetProcAddress("glGetStringi");
if (!glGetStringi)
{
glfwTerminate();
exit(EXIT_FAILURE);
}
glGetIntegerv(GL_NUM_EXTENSIONS, &count); glGetIntegerv(GL_NUM_EXTENSIONS, &count);
for (i = 0; i < count; i++) for (i = 0; i < count; i++)
@ -572,16 +564,6 @@ int main(int argc, char** argv)
if (api == GLFW_OPENGL_API && profile == GLFW_OPENGL_CORE_PROFILE) if (api == GLFW_OPENGL_API && profile == GLFW_OPENGL_CORE_PROFILE)
{ {
PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC
glGetFramebufferAttachmentParameteriv =
(PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)
glfwGetProcAddress("glGetFramebufferAttachmentParameteriv");
if (!glGetFramebufferAttachmentParameteriv)
{
glfwTerminate();
exit(EXIT_FAILURE);
}
glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER,
GL_BACK_LEFT, GL_BACK_LEFT,
GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE,