fprintf(stderr, "failed to load image " TEX_FNAME "\n");
return -1;
}
if((count_bits(tex_xsz) | count_bits(tex_ysz)) != 1) {
fprintf(stderr, "non-pow2 image (%dx%d)\n", tex_xsz, tex_ysz);
return -1;
fprintf(stderr, "failed to load image " TEX_FNAME "\n");
return -1;
}
if((count_bits(tex_xsz) | count_bits(tex_ysz)) != 1) {
fprintf(stderr, "non-pow2 image (%dx%d)\n", tex_xsz, tex_ysz);
return -1;