From b6d6a4709d7563a0cc03a06cd80f7107b54a52e2 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Tue, 31 Dec 2024 01:10:58 -0700 Subject: [PATCH] nv2a/gl: Use snake case for line width ranges --- hw/xbox/nv2a/pgraph/gl/draw.c | 4 ++-- hw/xbox/nv2a/pgraph/gl/renderer.c | 4 ++-- hw/xbox/nv2a/pgraph/gl/renderer.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/xbox/nv2a/pgraph/gl/draw.c b/hw/xbox/nv2a/pgraph/gl/draw.c index 8b1002e70d9..a9032562fa9 100644 --- a/hw/xbox/nv2a/pgraph/gl/draw.c +++ b/hw/xbox/nv2a/pgraph/gl/draw.c @@ -321,10 +321,10 @@ void pgraph_gl_draw_begin(NV2AState *d) if (!anti_aliasing && pgraph_reg_r(pg, NV_PGRAPH_SETUPRASTER) & NV_PGRAPH_SETUPRASTER_LINESMOOTHENABLE) { glEnable(GL_LINE_SMOOTH); - glLineWidth(MIN(r->supportedSmoothLineWidthRange[1], pg->surface_scale_factor)); + glLineWidth(MIN(r->supported_smooth_line_width_range[1], pg->surface_scale_factor)); } else { glDisable(GL_LINE_SMOOTH); - glLineWidth(MIN(r->supportedAliasedLineWidthRange[1], pg->surface_scale_factor)); + glLineWidth(MIN(r->supported_aliased_line_width_range[1], pg->surface_scale_factor)); } if (!anti_aliasing && pgraph_reg_r(pg, NV_PGRAPH_SETUPRASTER) & NV_PGRAPH_SETUPRASTER_POLYSMOOTHENABLE) { diff --git a/hw/xbox/nv2a/pgraph/gl/renderer.c b/hw/xbox/nv2a/pgraph/gl/renderer.c index 0e557c2dc8e..f91a192b25b 100644 --- a/hw/xbox/nv2a/pgraph/gl/renderer.c +++ b/hw/xbox/nv2a/pgraph/gl/renderer.c @@ -52,8 +52,8 @@ static void pgraph_gl_init(NV2AState *d, Error **errp) /* Internal RGB565 texture format */ assert(glo_check_extension("GL_ARB_ES2_compatibility")); - glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, r->supportedSmoothLineWidthRange); - glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, r->supportedAliasedLineWidthRange); + glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, r->supported_smooth_line_width_range); + glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, r->supported_aliased_line_width_range); pgraph_gl_init_surfaces(pg); pgraph_gl_init_reports(d); diff --git a/hw/xbox/nv2a/pgraph/gl/renderer.h b/hw/xbox/nv2a/pgraph/gl/renderer.h index 0ca124c3fce..918cbaa5886 100644 --- a/hw/xbox/nv2a/pgraph/gl/renderer.h +++ b/hw/xbox/nv2a/pgraph/gl/renderer.h @@ -230,8 +230,8 @@ typedef struct PGRAPHGLState { GLint palette_loc[256]; } disp_rndr; - GLfloat supportedAliasedLineWidthRange[2]; - GLfloat supportedSmoothLineWidthRange[2]; + GLfloat supported_aliased_line_width_range[2]; + GLfloat supported_smooth_line_width_range[2]; } PGRAPHGLState; extern GloContext *g_nv2a_context_render;