Ignore:
Timestamp:
Jul 30, 2013, 12:26:03 PM (7 years ago)
Author:
sam
Message:

tutorial: add missing uniform location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/tutorial/04_texture.cpp

    r2816 r2822  
    7777            m_shader = Shader::Create(LOLFX_RESOURCE_NAME(04_texture));
    7878            m_coord = m_shader->GetAttribLocation("in_Position", VertexUsage::Position, 0);
     79            m_texture_uni = m_shader->GetUniformLocation("u_Texture");
    7980
    8081            m_vdecl = new VertexDeclaration(VertexStream<vec2>(VertexUsage::Position));
     
    120121    Application app("Tutorial 4: Texture", ivec2(1280, 720), 60.0f);
    121122
     123//new DebugFps(50, 50);
    122124    new TextureDemo();
    123125
Note: See TracChangeset for help on using the changeset viewer.