Results 1 to 2 of 2

Thread: GL context robustness modes

  1. #1
    Senior Member Regular Contributor
    Join Date
    May 2016
    Posts
    477

    GL context robustness modes

    hi everyone,

    i'm trying to figure out what "robustness" of a context means, my window creation library in GLFW and it allows 3 different modes:
    -- GLFW_LOSE_CONTEXT_ON_RESET
    -- GLFW_NO_RESET_NOTIFICATION
    -- GLFW_NO_ROBUSTNESS, which means it is not "robust"

    whats the difference between the 2 other, "lose context on reset" and "no reset notification" ?
    i've read about it in the 4.5 specs, but i didnt find anything about the 2 modes.

    as far as i know, i can only query IF it is robust, but not the mode:
    Code :
    GLint contextflags = 0;
    glGetIntegerv(GL_CONTEXT_FLAGS, &contextflags);
    bool IsRobustAccessContext = contextflags & GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT;

    thanks in advance!

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    3,103
    Quote Originally Posted by john_connor View Post

    i'm trying to figure out what "robustness" of a context means, my window creation library in GLFW and it allows 3 different modes:
    -- GLFW_LOSE_CONTEXT_ON_RESET
    -- GLFW_NO_RESET_NOTIFICATION
    -- GLFW_NO_ROBUSTNESS, which means it is not "robust"

    whats the difference between the 2 other, "lose context on reset" and "no reset notification" ?
    GLFW is conflating two different concepts here (probably because they're both defined by the ARB_robustness extension). Robustness is about avoiding out-of-bounds array access (buffer overruns). Reset notification is about recovery from hardware errors.

    Specifying either mode (GLFW_LOSE_CONTEXT_ON_RESET or GLFW_NO_RESET_NOTIFICATION) causes robustness to be enabled for the context. If you specify GLFW_LOSE_CONTEXT_ON_RESET, you can use glGetGraphicsResetStatus() to determine when a reset has occurred, and why.

Similar Threads

  1. Replies: 2
    Last Post: 07-23-2018, 10:14 PM
  2. Replies: 1
    Last Post: 06-22-2013, 09:31 PM
  3. Robustness
    By Spulenpfeifen in forum OpenCL
    Replies: 2
    Last Post: 09-25-2011, 07:01 AM
  4. Replies: 2
    Last Post: 04-26-2010, 09:38 PM
  5. Replies: 1
    Last Post: 06-26-2003, 12:53 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