mirror of https://github.com/xemu-project/xemu.git
nv2a/gl: Use snake case for line width ranges
This commit is contained in:
parent
e67f19d03b
commit
b6d6a4709d
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue