2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

gl_state: Use bool instead of GLboolean

This fixes template resolution considering GLboolean an integer instead
of a bool.
This commit is contained in:
ReinUsesLisp 2020-01-18 19:09:48 -03:00
parent e972016456
commit d110a371bb
2 changed files with 3 additions and 3 deletions

View file

@ -1272,7 +1272,7 @@ void RasterizerOpenGL::SyncPointState() {
const auto& regs = system.GPU().Maxwell3D().regs; const auto& regs = system.GPU().Maxwell3D().regs;
// Limit the point size to 1 since nouveau sometimes sets a point size of 0 (and that's invalid // Limit the point size to 1 since nouveau sometimes sets a point size of 0 (and that's invalid
// in OpenGL). // in OpenGL).
state.point.program_control = regs.vp_point_size.enable ? GL_TRUE : GL_FALSE; state.point.program_control = regs.vp_point_size.enable != 0;
state.point.size = std::max(1.0f, regs.point_size); state.point.size = std::max(1.0f, regs.point_size);
} }

View file

@ -131,7 +131,7 @@ public:
std::array<Viewport, Tegra::Engines::Maxwell3D::Regs::NumViewports> viewports; std::array<Viewport, Tegra::Engines::Maxwell3D::Regs::NumViewports> viewports;
struct { struct {
GLboolean program_control = GL_FALSE; // GL_PROGRAM_POINT_SIZE bool program_control = false; // GL_PROGRAM_POINT_SIZE
GLfloat size = 1.0f; // GL_POINT_SIZE GLfloat size = 1.0f; // GL_POINT_SIZE
} point; } point;