/*
- Copyright (c) 2009 Apple Inc.
+ Copyright (c) 2009-2011 Apple Inc.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
promote the sale, use or other dealings in this Software without
prior written authorization.
*/
+
+#include "glxclient.h"
#include "apple_glx_context.h"
#include "apple_xgl_api.h"
-#include "apple_xgl_api_viewport.h"
+#include "glapitable.h"
-extern struct apple_xgl_api __gl_api;
+extern struct _glapi_table * __ogl_framework_api;
void
-glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
+__applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
- GLXContext gc = __glXGetCurrentContext();
+ struct glx_context *gc = __glXGetCurrentContext();
Display *dpy = glXGetCurrentDisplay();
if (gc && gc->driContext)
apple_glx_context_update(dpy, gc->driContext);
- __gl_api.Viewport(x, y, width, height);
+ __ogl_framework_api->Viewport(x, y, width, height);
}