projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i965: switch gen6 to use its own cc state bo
[mesa.git]
/
src
/
mesa
/
main
/
viewport.c
diff --git
a/src/mesa/main/viewport.c
b/src/mesa/main/viewport.c
index 309308c983b34067fb0240912570a8ce06cf0a1f..a58697ab3704036f11848b4323e3ed99736dcb89 100644
(file)
--- a/
src/mesa/main/viewport.c
+++ b/
src/mesa/main/viewport.c
@@
-31,6
+31,7
@@
#include "context.h"
#include "macros.h"
#include "context.h"
#include "macros.h"
+#include "mtypes.h"
#include "viewport.h"
#include "viewport.h"
@@
-60,7
+61,7
@@
_mesa_Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
* \param height height of the viewport rectangle.
*/
void
* \param height height of the viewport rectangle.
*/
void
-_mesa_set_viewport(
GL
context *ctx, GLint x, GLint y,
+_mesa_set_viewport(
struct gl_
context *ctx, GLint x, GLint y,
GLsizei width, GLsizei height)
{
if (MESA_VERBOSE & VERBOSE_API)
GLsizei width, GLsizei height)
{
if (MESA_VERBOSE & VERBOSE_API)
@@
-145,13
+146,17
@@
_mesa_DepthRange(GLclampd nearval, GLclampd farval)
}
}
}
}
-
+void GLAPIENTRY
+_mesa_DepthRangef(GLclampf nearval, GLclampf farval)
+{
+ _mesa_DepthRange(nearval, farval);
+}
/**
* Initialize the context viewport attribute group.
* \param ctx the GL context.
*/
/**
* Initialize the context viewport attribute group.
* \param ctx the GL context.
*/
-void _mesa_init_viewport(
GL
context *ctx)
+void _mesa_init_viewport(
struct gl_
context *ctx)
{
GLfloat depthMax = 65535.0F; /* sorf of arbitrary */
{
GLfloat depthMax = 65535.0F; /* sorf of arbitrary */
@@
-173,7
+178,7
@@
void _mesa_init_viewport(GLcontext *ctx)
* Free the context viewport attribute group data.
* \param ctx the GL context.
*/
* Free the context viewport attribute group data.
* \param ctx the GL context.
*/
-void _mesa_free_viewport_data(
GL
context *ctx)
+void _mesa_free_viewport_data(
struct gl_
context *ctx)
{
_math_matrix_dtr(&ctx->Viewport._WindowMap);
}
{
_math_matrix_dtr(&ctx->Viewport._WindowMap);
}