aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Waller <p@pwaller.net>2014-07-06 10:11:00 +0100
committerPeter Waller <p@pwaller.net>2014-07-06 10:11:00 +0100
commit9b8c760d6cfcf8df175436d3b206e85eda23f318 (patch)
treedd04b068bf4375cd3b0f3ed92230e60490168a06
parent968930c83e4e01d1f683e3a9e7ab595bc7741084 (diff)
parentfddde94cef78b7c03d90525d9fa091535912a5cb (diff)
downloadgl-9b8c760d6cfcf8df175436d3b206e85eda23f318.tar.gz
Merge pull request #158 from tildeleb/master
fix ClipPlane; change type of equation arg from *float64 to []float64
-rw-r--r--gl.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gl.go b/gl.go
index f9e09e7..f83a4d3 100644
--- a/gl.go
+++ b/gl.go
@@ -187,8 +187,8 @@ func ClearStencil(s int) {
}
//void glClipPlane (GLenum plane, const float64 *equation)
-func ClipPlane(plane GLenum, equation *float64) {
- C.glClipPlane(C.GLenum(plane), (*C.GLdouble)(equation))
+func ClipPlane(plane GLenum, equation []float64) {
+ C.glClipPlane(C.GLenum(plane), (*C.GLdouble)(&equation[0]))
}
//void glCopyPixels (int x, int y, int width, int height, GLenum type)