Re: JOCL texture generation
Posted by
Wade Walker on
Mar 20, 2014; 1:37am
URL: https://forum.jogamp.org/JOCL-texture-generation-tp4031853p4032000.html
fifty wrote
Perhaps should try some different format than GL_RGBA, GL_UNSIGNED_BYTE with GL!
I have tried a few combinations here, but GL_RGBA, GL_UNSIGNED_BYTE is one of the ones that people seemed to recommend :(
fifty wrote
It is strange that Intel and NVidia platform show the same unknown error code!
On my Mac, Intel and Nvidia both work! And on my PC, neither one throws the error that you're showing. Have you checked to see that your device even supports texture sharing? Either check
device.isGLMemorySharingSupported()
or do this:
platform = CLPlatform.getDefault(glSharing(drawable.getContext()));
device = platform.getMaxFlopsDevice(CLDeviceFilters.glSharing());
If your device doesn't support, that would explain the error :) I'll try with the Intel drivers on my PC and see what result that gives. But on the good side, we know the code works on at least two devices, so there can't be anything too wrong with it.