vkquake uses char for the pants/shirt members of the gltexture_t. This works well on x86, but does not work well on arm, where char is unsigned (so the comparison with -1 elsewhere in the code will always succeed). This should probably be changed to int8_t instead (or signed char).
unsigned short source_crc; //generated by source data before modifications
char shirt; //0-13 shirt color, or -1 if never colormapped
char pants; //0-13 pants color, or -1 if never colormapped
//used for rendering
VkImage image;
VkImageView image_view;
VkImageView target_image_view;
struct glheap_s * heap;
struct glheapnode_s * heap_node;
VkDescriptorSet descriptor_set;
VkFramebuffer frame_buffer;
VkDescriptorSet warp_write_descriptor_set;
int visframe; //matches r_framecount if texture was bound this frame
} gltexture_t;
Hi!
vkquake uses char for the pants/shirt members of the gltexture_t. This works well on x86, but does not work well on arm, where char is unsigned (so the comparison with -1 elsewhere in the code will always succeed). This should probably be changed to int8_t instead (or signed char).