Ticket #34: svx123-glclearcolor.patch

File svx123-glclearcolor.patch, 822 bytes (added by Olly Betts, 11 years ago)

Call glClearColor after OpenGL is initialised

  • src/gla-gl.cc

     
    244244    m_Fog = false;
    245245    m_AntiAlias = false;
    246246    list_flags = 0;
    247     // Set the background colour of the canvas to black.
    248     glClearColor(0.0, 0.0, 0.0, 1.0);
    249     CHECK_GL_ERROR("GLACanvas", "glClearColor");
    250247}
    251248
    252249GLACanvas::~GLACanvas()
     
    268265
    269266    SetCurrent();
    270267    opengl_initialised = true;
     268
     269    // Set the background colour of the canvas to black.
     270    glClearColor(0.0, 0.0, 0.0, 1.0);
     271    CHECK_GL_ERROR("GLACanvas", "glClearColor");
     272
    271273    save_hints = false;
    272274    vendor = wxString((const char *)glGetString(GL_VENDOR), wxConvUTF8);
    273275    renderer = wxString((const char *)glGetString(GL_RENDERER), wxConvUTF8);