• MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 453 from 2003/7/26
    From: Wroclaw/Poland
    I noticed somethig strange. I can't check if scissor is enabled. Function glIsEnabled() always returns 0 if I use parameter GL_SCISSOR_TEST. If I use glIsEnabled() with other parameter (e.g. GL_FOG), the function will return correct value.
    Please look at this simple test:

    Code:
    glEnable(GL_SCISSOR_TEST);
    printf("scissor enabled: %d\n", glIsEnabled(GL_SCISSOR_TEST));
    glDisable(GL_SCISSOR_TEST);
    printf("scissor disabled: %d\n", glIsEnabled(GL_SCISSOR_TEST));

    glEnable(GL_FOG);
    printf("fog enabled: %d\n", glIsEnabled(GL_FOG));
    glDisable(GL_FOG);
    printf("fog disabled: %d\n", glIsEnabled(GL_FOG));


    RESULT:

    scissor enabled: 0
    scissor disabled: 0
    fog enabled: 1
    fog disabled: 0



    Is it a bug in TinyGL? Known bug?

    I use MorphOS 3.9 with MOS SDK 3.9 on PowerBookG4 (15-inch, 1,67 GHz).
  • »26.01.17 - 20:33
    Profile Visit Website