Bug 824

Summary: Wrong argument order on createFromGLTexture3d
Product: [JogAmp] Jocl Reporter: lixoman100
Component: openclAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: 1   
Hardware: All   
OS: all   
Type: --- SCM Refs:
7b21b5abb6373637eeeb270de05bb7472f70b853 722624dbbce37fa69c0cae0d832beb5a58d68739 ef02c4dc2aced367ad5de29171d138161e2b3514
Workaround: ---

Description lixoman100 2013-09-04 19:07:22 CEST
On the file src/com/jogamp/opencl/gl/CLGLContext.java, the call for CLGLTexture3d.createFromGLTexture3d has the target/texture/flags order wrong.

-        CLGLTexture3d<B> buffer = CLGLTexture3d.createFromGLTexture3d(this, directBuffer, target, texture, mipmap, flags);
+        CLGLTexture3d<B> buffer = CLGLTexture3d.createFromGLTexture3d(this, directBuffer, flags, target, mipmap, texture);
  

This might be related to Bug #553.
Comment 1 lixoman100 2013-09-04 19:14:33 CEST
Fix included in this pull request: https://github.com/JogAmp/jocl/pull/2
Comment 2 Sven Gothel 2013-10-12 22:22:25 CEST
Thank you!