aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawrence E. Bakst <leb@me.com>2014-06-30 18:46:45 -0400
committerLawrence E. Bakst <leb@me.com>2014-07-03 01:13:49 -0400
commitfddde94cef78b7c03d90525d9fa091535912a5cb (patch)
treedd04b068bf4375cd3b0f3ed92230e60490168a06
parent968930c83e4e01d1f683e3a9e7ab595bc7741084 (diff)
downloadgl-fddde94cef78b7c03d90525d9fa091535912a5cb.tar.gz
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)