Results 1 to 2 of 2

Thread: textures disappear when executable moved

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2010

    textures disappear when executable moved

    I have a glut application that loads 6 textures and displays them (although this isn't the only thing it does) when I copy the executable file (windows .exe file) and the texture files to a new computer they are no longer visible when the application runs. all of the files are in the same folder on both the development pc and test pc.

    please help.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Grenoble - France

    Re: textures disappear when executable moved

    A sanity check is to try a simple 128x128 image, that should work everywhere.

    There is a good chance that one pc has a more capable hardware.
    Things to check, once GL in initialized, log some info :
    - maximum texture size :
    Code :
    GLint texSize;
    glGetIntegerv(GL_MAX_TEXTURE_SIZE, &texSize);
    - hardware support for non-power-of two textures :
    does glGetString(GL_EXTENSIONS) contain GL_ARB_texture_non_power_of_two ?
    - loaded image size. check it stays within the above limits.

    Do you use mipmaps ?

Similar Threads

  1. Replies: 1
    Last Post: 09-10-2013, 10:40 AM
  2. Having 2 objects being controlled and moved at the same time
    By zemprof in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-01-2013, 06:51 AM
  3. Object-level culling causes textures to disappear?
    By posixoptions in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-18-2010, 03:21 PM
  4. Textures disappear after full screen toggle
    By in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 05-09-2006, 05:23 AM
  5. Dialog disappears when moved within Opengl View
    By Stef in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-08-2002, 08:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean