UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4632 Move R_ProgramParameter calls into R_GeoscapeProgramInit
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/505 Item 505] imported from sourceforge.net tracker on 2013-01-28 20:43:43

Several variables were getting assigned in r_globeEarth and then copied via R_ProgramParameter into the geoscape shader program. Since these were all hardcoded to constant values anyway, this was inefficient. This patch moves the R_ProgramParameter calls into the geoscape shader program init function (R_InitGeoscapeProgram), and then removes the extra variables and assignments in r_sphere.h, r_sphere.c, and r_draw.c.

This patch should not change the program behavior, it just makes for cleaner (and more optimized) code.
===== Comments Ported from Sourceforge =====

====== arisian (2010-03-24 13:53:43) ======

patch to move variable setup into R_InitGeoscapeProgram function
====== tlh2000 (2010-03-24 20:29:36) ======

Applied to trunk - thanks
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif