diff options
author | Peter Waller <p@pwaller.net> | 2014-07-06 10:11:00 +0100 |
---|---|---|
committer | Peter Waller <p@pwaller.net> | 2014-07-06 10:11:00 +0100 |
commit | 9b8c760d6cfcf8df175436d3b206e85eda23f318 (patch) | |
tree | dd04b068bf4375cd3b0f3ed92230e60490168a06 | |
parent | 968930c83e4e01d1f683e3a9e7ab595bc7741084 (diff) | |
parent | fddde94cef78b7c03d90525d9fa091535912a5cb (diff) | |
download | gl-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.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) |