~3v1n0/unity/fix-load-icon-crash-926658

« back to all changes in this revision

Viewing changes to unity-shared/IconRenderer.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2012-08-10 12:35:24 UTC
  • mfrom: (2509.1.36 unity)
  • Revision ID: mail@3v1n0.net-20120810123524-l41egcjcmt778uzc
Merging with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
 
251
251
  std::list<RenderArg>::iterator it;
252
252
  int i;
253
 
  for (it = args.begin(), i = 0; it != args.end(); it++, i++)
 
253
  for (it = args.begin(), i = 0; it != args.end(); ++it, i++)
254
254
  {
255
255
 
256
256
    IconTextureSource* launcher_icon = it->icon;
757
757
  CHECKGL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0));
758
758
  CHECKGL(glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, 0));
759
759
 
760
 
  int TextureObjectLocation;
761
760
  int VertexLocation;
762
761
  int TextureCoord0Location;
763
762
  int FragmentColor = 0;
768
767
  {
769
768
    local::shader_program_uv_persp_correction->Begin();
770
769
 
771
 
    TextureObjectLocation   = local::shader_program_uv_persp_correction->GetUniformLocationARB("TextureObject0");
 
770
    int TextureObjectLocation   = local::shader_program_uv_persp_correction->GetUniformLocationARB("TextureObject0");
772
771
    VertexLocation          = local::shader_program_uv_persp_correction->GetAttributeLocation("iVertex");
773
772
    TextureCoord0Location   = local::shader_program_uv_persp_correction->GetAttributeLocation("iTexCoord0");
774
773
    FragmentColor           = local::shader_program_uv_persp_correction->GetUniformLocationARB("color0");