diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/NewtFactory.java | 2 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/DisplayImpl.java | 3 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/ScreenImpl.java | 3 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 3 |
4 files changed, 10 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/NewtFactory.java b/src/newt/classes/com/jogamp/newt/NewtFactory.java index 82f74e370..61dbfb34c 100644 --- a/src/newt/classes/com/jogamp/newt/NewtFactory.java +++ b/src/newt/classes/com/jogamp/newt/NewtFactory.java @@ -63,8 +63,8 @@ public class NewtFactory { try { clazz = Class.forName(clazzName); } catch (Throwable t) { - System.err.println("Warning: Failed to find class <"+clazzName+">: "+t.getMessage()); if(DEBUG_IMPLEMENTATION) { + System.err.println("Warning: Failed to find class <"+clazzName+">: "+t.getMessage()); t.printStackTrace(); } } diff --git a/src/newt/classes/jogamp/newt/DisplayImpl.java b/src/newt/classes/jogamp/newt/DisplayImpl.java index f2f35135a..a0bbcc264 100644 --- a/src/newt/classes/jogamp/newt/DisplayImpl.java +++ b/src/newt/classes/jogamp/newt/DisplayImpl.java @@ -70,6 +70,9 @@ public abstract class DisplayImpl extends Display { throw new RuntimeException("Unknown display type \"" + type + "\""); } } + if(null==displayClass) { + throw new ClassNotFoundException("Failed to find NEWT Display Class <"+type+".Display>"); + } return displayClass; } diff --git a/src
import java.nio.ByteOrder;
import static com.mbien.opencl.CLException.*;
import static com.mbien.opencl.CL.*;
/**
* High level abstraction for an OpenCL Kernel.
* "A kernel is a function declared in a program. A kernel is identified by the __kernel qualifier
* applied to any function in a program. A kernel object encapsulates the specific __kernel
* function declared in a program and the argument values to be used when executing this
* __kernel function."
* @author Michael Bien
*/
public class CLKernel implements CLResource {
public final long ID;
public final String name;
public final int numArgs;
private final CLProgram program;
private final CL cl;
private int argIndex;
CLKernel(CLProgram program, long id) {
this.ID = id;
this.program = program;
this.cl = program.context.cl;
long[] longArray
|