Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: Apoptose

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    2,216

    Just tried it. With f == -1 g++ complained about...

    Just tried it. With f == -1 g++ complained about -Wsign-compare.

    After adding a cout statement I recognized that g < 0 was false. I just thought since the texturing Code worked, it was true :)
  2. Replies
    7
    Views
    2,216

    Ok, then I'll leave it as 0. I actually worked...

    Ok, then I'll leave it as 0.

    I actually worked around comparing to -1 by using TextureHandle < 0,since Gcc didn't let me do it :D
  3. Replies
    7
    Views
    2,216

    Thanks Nowhere-01, I actually used that...

    Thanks Nowhere-01,

    I actually used that example, but didn't notice the FreeImage_GetBits call.

    And thanks for that tip! (Although TextureHandle then needs to be a GLint)

    Apoptose
  4. Replies
    7
    Views
    2,216

    glTexImage2D crashes with SIGSEGV

    Hi,

    I tried to texture a cube using FreeImage. However, each time I call glTexImage2D the program crashes.

    I (up)load the Texture with the following code:




    GLuint...
  5. Thanks everyone, that solved the Problem. ...

    Thanks everyone, that solved the Problem.

    Didn't thought he would free the memory.

    After copying the c-String to an new Memory-Location it worked.

    Thanks again,
    Apoptose
  6. glShaderSource() doesn't copy the code correctly

    Hi,

    my Problem is, that glShaderSource() cuts the Vertex Shader code, so glCompileShader() will fail and report the following error:



    0(11) : error C0000: syntax error, unexpected...
Results 1 to 6 of 6