diff options
author | Lawrence E. Bakst <leb@me.com> | 2014-06-30 18:46:45 -0400 |
---|---|---|
committer | Lawrence E. Bakst <leb@me.com> | 2014-07-03 01:13:49 -0400 |
commit | fddde94cef78b7c03d90525d9fa091535912a5cb (patch) | |
tree | dd04b068bf4375cd3b0f3ed92230e60490168a06 | |
parent | 968930c83e4e01d1f683e3a9e7ab595bc7741084 (diff) | |
download | gl-fddde94cef78b7c03d90525d9fa091535912a5cb.tar.gz |
fix ClipPlane; change type of equation arg from *float64 to []float64
-rw-r--r-- | gl.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |