Original Post
Hi, i have mi method for loading a bmp, and this is the code:
void CImageLoader::LoadBMP( char* strImageName, UINT textureArray[], int textureID )
{
BITMAP* pImageBuffer1;
pImageBuffer1 = load_bmp( strImageName, NULL);
glGenTextures(1, &textureArray[textureID]);
glBindTexture(GL_TEXTURE_2D, textureArray[textureID]);
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, pImageBuffer1->w, pImageBuffer1->h, GL_RGBA, GL_UNSIGNED_BYTE, pImageBuffer1->dat); // here is the problem
destroy_bitmap( pImageBuffer1 );
}
I did that code in my other computer, and it worked perfectly (amd64), and now, i have to program in my laptop (dell xps, intel core 2 duo), but it doesnt works in my lap!! the problem is when i use the gluBuild2Mipmaps..... this is the error the debugger throws: First-chance exception at 0x68b27372 in avance1.exe: 0xC0000005: Access violation reading location 0x02ab3000. Unhandled exception at 0x68b27372 in avance1.exe: 0xC0000005: Access violation reading location 0x02ab3000. how is it possible that in both computers compile, but in one runs, and in the other doesnt...... thanks for any possible help