SOIL image library cannot load image file from any other directory

222 Views Asked by At

Trying to load images for textures using SOIL, but it can be loaded only from program's directory, any other variants doesnt work(((( This code doesnt work:

mage = SOIL_load_image("C:\\Codes\\Instinct\\March\\V 0.5\\3. UI\\bin\\Debug\\1\\3.jpg", &width, &height, 0, SOIL_LOAD_RGB);

This code works:

image = SOIL_load_image("3.jpg", &width, &height, 0, SOIL_LOAD_RGB);

Any ideas how to fix it?

0

There are 0 best solutions below