mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
radeon / r200: Fix incompatible pointer type warning
When parameters were removed from dd_function_table::Viewport (commit
065bd6ff), radeon_viewport (in both radeon and r200) started generating
a warning.
radeon_common.c: In function 'r200_radeon_viewport':
radeon_common.c:415:15: warning: assignment from incompatible pointer type [enabled by default]
radeon_common.c:419:23: warning: assignment from incompatible pointer type [enabled by default]
I didn't notice this initially, and it's harmless because the function is
never called through the incorrectly typed pointer.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
840154dc50
commit
b790bed21e
1 changed files with 1 additions and 2 deletions
|
|
@ -400,8 +400,7 @@ void radeon_viewport(struct gl_context *ctx)
|
|||
{
|
||||
radeonContextPtr radeon = RADEON_CONTEXT(ctx);
|
||||
__DRIcontext *driContext = radeon->dri.context;
|
||||
void (*old_viewport)(struct gl_context *ctx, GLint x, GLint y,
|
||||
GLsizei w, GLsizei h);
|
||||
void (*old_viewport)(struct gl_context *ctx);
|
||||
|
||||
if (_mesa_is_winsys_fbo(ctx->DrawBuffer)) {
|
||||
if (radeon->is_front_buffer_rendering) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue