mesa: make _mesa_check_init_viewport() static
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
7ea4cda2ab
commit
58473f8b87
|
@ -1539,8 +1539,8 @@ check_compatible(const struct gl_context *ctx,
|
||||||
* Check if the viewport/scissor size has not yet been initialized.
|
* Check if the viewport/scissor size has not yet been initialized.
|
||||||
* Initialize the size if the given width and height are non-zero.
|
* Initialize the size if the given width and height are non-zero.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
_mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height)
|
check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height)
|
||||||
{
|
{
|
||||||
if (!ctx->ViewportInitialized && width > 0 && height > 0) {
|
if (!ctx->ViewportInitialized && width > 0 && height > 0) {
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
@ -1724,8 +1724,7 @@ _mesa_make_current( struct gl_context *newCtx,
|
||||||
*/
|
*/
|
||||||
newCtx->NewState |= _NEW_BUFFERS;
|
newCtx->NewState |= _NEW_BUFFERS;
|
||||||
|
|
||||||
_mesa_check_init_viewport(newCtx,
|
check_init_viewport(newCtx, drawBuffer->Width, drawBuffer->Height);
|
||||||
drawBuffer->Width, drawBuffer->Height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newCtx->FirstTimeCurrent) {
|
if (newCtx->FirstTimeCurrent) {
|
||||||
|
|
|
@ -123,10 +123,6 @@ _mesa_destroy_context( struct gl_context *ctx );
|
||||||
extern void
|
extern void
|
||||||
_mesa_copy_context(const struct gl_context *src, struct gl_context *dst, GLuint mask);
|
_mesa_copy_context(const struct gl_context *src, struct gl_context *dst, GLuint mask);
|
||||||
|
|
||||||
|
|
||||||
extern void
|
|
||||||
_mesa_check_init_viewport(struct gl_context *ctx, GLuint width, GLuint height);
|
|
||||||
|
|
||||||
extern GLboolean
|
extern GLboolean
|
||||||
_mesa_make_current( struct gl_context *ctx, struct gl_framebuffer *drawBuffer,
|
_mesa_make_current( struct gl_context *ctx, struct gl_framebuffer *drawBuffer,
|
||||||
struct gl_framebuffer *readBuffer );
|
struct gl_framebuffer *readBuffer );
|
||||||
|
|
Loading…
Reference in New Issue