Hi All,
I encounter problems with glDeleteTextures()
When I compile my code, I obtain several errors saying :
AmiDE_Images.c:(.text+0x???): undefined reference to `mini_CurrentContext'
AmiDE_Images.c:(.text+0x???): undefined reference to `__glut_current_context'
and some others ... It does not happen when I remove the glDeleteTextures( .... ) line.
Here is the function that uses the glDeleteTextures:
void DEDeleteImage( int ImageIndex ){
GLuint Texture;
if ( ImageData[ ImageIndex ].Exist == TRUE ){
Texture = ImageData[ ImageIndex ].Texture;
glDeleteTextures( 1, &Texture );
ImageData[ ImageIndex ].Exist = FALSE;
}
}
Does someone have an idea ?
Thank you.
EDIT : Forget this question .. CodeBench did overwrite my makefile and crashed the MGL referencies ... Fixed :p
Regards,
Fred