Created
May 2, 2012 21:56
-
-
Save abma/2580827 to your computer and use it in GitHub Desktop.
Lua widget that triggers a bug in spring (http://springrts.com/mantis/view.php?id=2116)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function widget:GetInfo() | |
return { | |
name = "ATI pointsize Fail", | |
desc = "ATI pointsize Fail", | |
author = "Masure", | |
date = "2010 Sept 14", | |
license = "GNU GPL, v2 or later", | |
layer = 1, -- after the normal widgets | |
enabled = false -- loaded by default? | |
} | |
end | |
local GL_POINTS = GL.POINTS | |
local glBeginEnd = gl.BeginEnd | |
local glColor = gl.Color | |
local glPointSize = gl.PointSize | |
local glVertex = gl.Vertex | |
local glPointParameter = gl.PointParameter | |
function widget:DrawScreen() | |
glPointParameter(1,1,1, 1,5,5) | |
glPointSize(10) | |
glColor({1,1,0} ) | |
glBeginEnd(GL_POINTS, glVertex, 100, 100) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment