summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLProgram.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-01 07:06:45 +0200
committerSven Gothel <[email protected]>2011-05-01 07:06:45 +0200
commitdab2ffd696b5f9ccb192834c3e50132fad96a30a (patch)
treea174ad04342f32002197171eb895b2435fc42f49 /src/com/jogamp/opencl/CLProgram.java
parent454f81a14da543faebae4c8e6adebb3256a2e646 (diff)
parentabcef28580df7ba0176390fe6d0a0eb1d969183d (diff)
Merge remote-tracking branch 'mbien/master'
Diffstat (limited to 'src/com/jogamp/opencl/CLProgram.java')
-rw-r--r--src/com/jogamp/opencl/CLProgram.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLProgram.java b/src/com/jogamp/opencl/CLProgram.java
index fd19cd8f..56804533 100644
--- a/src/com/jogamp/opencl/CLProgram.java
+++ b/src/com/jogamp/opencl/CLProgram.java
@@ -584,7 +584,12 @@ public class CLProgram extends CLObject implements CLResource {
* each call of this method calls into Open
*/
public String getSource() {
- return getProgramInfoString(CL_PROGRAM_SOURCE);
+ // some drivers return IVE codes if the program haven't been built from source.
+ try{
+ return getProgramInfoString(CL_PROGRAM_SOURCE);
+ }catch(CLException.CLInvalidValueException ingore) {
+ return "";
+ }
}
/**