Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: glGetShaderiv

Hybrid View

  1. #1


    glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
    glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &maxLength);
    glGetShaderInfoLog(shader, maxLength, &length, log);

    i see a strange result, status is not true, maxLength is very big, but length is zero, and log is empty, but finally i get the right 3d scene.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Dec 2007
    Sounds like a potential driver bug. What hardware and driver are you using?
    Disclaimer: This is my personal profile. Whatever I write here is my personal opinion and none of my statements or speculations are anyhow related to my employer and as such should not be treated as accurate or valid and in no case should those be considered to represent the opinions of my employer.
    Technical Blog:

  3. #3
    Member Regular Contributor Nowhere-01's Avatar
    Join Date
    Feb 2011
    you should post some surrounding code. probably something wrong with type-casting, or some mistakes in shader setup. or it is, indeed, a driver bug.

  4. #4
    freebsd os, gt430, nvidia driver , support gl 4.2, mesa+glew+glfw api

    I am sorry i can't post the code because i lay on bed. It is deep night in my timezone. I type with phone.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts