Skip to content

Invalid comparison of signed integer with unsigned integer #965

@Destranix

Description

@Destranix

Bug Report

In sprite_list_geometry_cull_geo.glsl and sprite_list_geometry_no_cull_geo.glsl.
Some GLSL compilers report an signed integer overflow for the following line:
if (vertex_id[0] == 4294967294) return;
This is a designerror. You are using a unsigned magic number for check of a signed value.

This can be fixed by either making the variable unsigned or by using a signed magic number like -1.

P.S.: I haven't reproduced that issue myself, just got messaged by someone on a different platform and wanted to make sure that you know about the issue.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions