Skip to content

Commit

Permalink
nv2a/gl: Use snake case for line width ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Dec 31, 2024
1 parent e67f19d commit b6d6a47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hw/xbox/nv2a/pgraph/gl/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions hw/xbox/nv2a/pgraph/gl/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions hw/xbox/nv2a/pgraph/gl/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b6d6a47

Please sign in to comment.