From 0135df38d6ccdf17283a26c9c56adb08a0e6d30e Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Sun, 4 Oct 2015 14:08:22 -0500 Subject: Remove CLGL interface This removes the last sub-interface that would have to be separately versioned for future versions of OpenCL. After this, new OpenCL versions will only create one new interface and one new implementation. --- src/com/jogamp/opencl/gl/CLGLImage2d.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/com/jogamp/opencl/gl/CLGLImage2d.java') diff --git a/src/com/jogamp/opencl/gl/CLGLImage2d.java b/src/com/jogamp/opencl/gl/CLGLImage2d.java index 67616542..2422af93 100644 --- a/src/com/jogamp/opencl/gl/CLGLImage2d.java +++ b/src/com/jogamp/opencl/gl/CLGLImage2d.java @@ -29,7 +29,6 @@ package com.jogamp.opencl.gl; import com.jogamp.opencl.llb.CL; -import com.jogamp.opencl.llb.gl.CLGL; import com.jogamp.opencl.CLContext; import com.jogamp.opencl.CLException; import com.jogamp.opencl.CLImage2d; @@ -62,9 +61,8 @@ public class CLGLImage2d extends CLImage2d implements CLGLO final CL cl = getCL(context); final int[] result = new int[1]; - final CLGL clgli = (CLGL)cl; - final long id = clgli.clCreateFromGLRenderbuffer(context.ID, flags, renderbuffer, result, 0); + final long id = cl.clCreateFromGLRenderbuffer(context.ID, flags, renderbuffer, result, 0); CLException.checkForError(result[0], "can not create CLGLImage2d from renderbuffer #"+renderbuffer+"."); return createImage(context, id, directBuffer, renderbuffer, flags); -- cgit v1.2.3