minor clean-up
This commit is contained in:
@@ -675,7 +675,8 @@ _mesa_SampleCoverageARB(GLclampf value, GLboolean invert)
|
|||||||
* change flushes the vertices and notifies the driver via
|
* change flushes the vertices and notifies the driver via
|
||||||
* the dd_function_table::Scissor callback.
|
* the dd_function_table::Scissor callback.
|
||||||
*/
|
*/
|
||||||
void _mesa_set_scissor( GLcontext *ctx,
|
void
|
||||||
|
_mesa_set_scissor(GLcontext *ctx,
|
||||||
GLint x, GLint y, GLsizei width, GLsizei height)
|
GLint x, GLint y, GLsizei width, GLsizei height)
|
||||||
{
|
{
|
||||||
if (x == ctx->Scissor.X &&
|
if (x == ctx->Scissor.X &&
|
||||||
|
@@ -74,8 +74,8 @@ _mesa_init_scissor(GLcontext *ctx);
|
|||||||
extern void
|
extern void
|
||||||
_mesa_init_multisample(GLcontext *ctx);
|
_mesa_init_multisample(GLcontext *ctx);
|
||||||
|
|
||||||
extern void _mesa_set_scissor( GLcontext *ctx,
|
extern void
|
||||||
|
_mesa_set_scissor(GLcontext *ctx,
|
||||||
GLint x, GLint y, GLsizei width, GLsizei height);
|
GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1640,10 +1640,8 @@ _mesa_make_current( GLcontext *newCtx, GLframebuffer *drawBuffer,
|
|||||||
/* set initial viewport and scissor size now */
|
/* set initial viewport and scissor size now */
|
||||||
_mesa_set_viewport(newCtx, 0, 0,
|
_mesa_set_viewport(newCtx, 0, 0,
|
||||||
drawBuffer->Width, drawBuffer->Height);
|
drawBuffer->Width, drawBuffer->Height);
|
||||||
|
|
||||||
_mesa_set_scissor(newCtx, 0, 0,
|
_mesa_set_scissor(newCtx, 0, 0,
|
||||||
drawBuffer->Width,
|
drawBuffer->Width, drawBuffer->Height );
|
||||||
drawBuffer->Height );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user