Changeset 157 for trunk/src/gl


Ignore:
Timestamp:
07/08/13 19:59:07 (12 years ago)
Author:
epyon
Message:
  • context now stores device pointer
Location:
trunk/src/gl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_context.cc

    r121 r157  
    349349
    350350
    351 gl_context::gl_context()
     351gl_context::gl_context( device* a_device )
     352        : context( a_device )
    352353{
    353354        // TODO: do we really need this?
  • trunk/src/gl/gl_window.cc

    r121 r157  
    167167        NV_LOG( LOG_INFO, "OpenGL GLSL Version : " << glGetString(GL_SHADING_LANGUAGE_VERSION) );
    168168
    169         m_context = new gl_context();
     169        m_context = new gl_context( m_device );
    170170        m_context->set_viewport( nv::ivec4( 0, 0, m_width, m_height ) );
    171171}
Note: See TracChangeset for help on using the changeset viewer.