You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The loadBMP() function, used in several examples, is not working properly on 64bit Linux, it shows:
Error: number of Planes not 1!
It seems that the problem is due to the assumption that long int is 32bit - while it is not on x86_64. In consequence the header of the BMP file is not read properly.
Anyway - changing long int to int (and %ld to %d) in the function seems to solve the problem.
The text was updated successfully, but these errors were encountered:
t-w
added a commit
to t-w/nehe-opengl
that referenced
this issue
Sep 10, 2018
The
loadBMP()
function, used in several examples, is not working properly on 64bit Linux, it shows:It seems that the problem is due to the assumption that
long int
is 32bit - while it is not on x86_64. In consequence the header of the BMP file is not read properly.Anyway - changing
long int
toint
(and%ld
to%d
) in the function seems to solve the problem.The text was updated successfully, but these errors were encountered: