mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-08 07:54:05 +00:00
Changed ALC10's alcGetString and alcOpenDevice to use UTF8 decoding/encoding.
New GL extensions: NV_compute_program5, NV_shader_storage_buffer_object, NV_shader_atomic_counters, NV_deep_texture3D New GLES extension: QCOM_binning_control
This commit is contained in:
parent
bfd995bb05
commit
cab3d10c46
8 changed files with 277 additions and 13 deletions
|
|
@ -152,12 +152,11 @@ public final class ALC10 {
|
|||
* @return String property from device
|
||||
*/
|
||||
public static String alcGetString(ALCdevice device, int pname) {
|
||||
String result;
|
||||
result = nalcGetString(getDevice(device), pname);
|
||||
ByteBuffer buffer = nalcGetString(getDevice(device), pname);
|
||||
Util.checkALCError(device);
|
||||
return result;
|
||||
return MemoryUtil.decodeUTF8(buffer);
|
||||
}
|
||||
static native String nalcGetString(long device, int pname);
|
||||
static native ByteBuffer nalcGetString(long device, int pname);
|
||||
|
||||
/**
|
||||
* The application can query ALC for information using an integer query function.
|
||||
|
|
@ -199,7 +198,7 @@ public final class ALC10 {
|
|||
* @return opened device, or null
|
||||
*/
|
||||
public static ALCdevice alcOpenDevice(String devicename) {
|
||||
ByteBuffer buffer = MemoryUtil.encodeASCII(devicename);
|
||||
ByteBuffer buffer = MemoryUtil.encodeUTF8(devicename);
|
||||
long device_address = nalcOpenDevice(MemoryUtil.getAddressSafe(buffer));
|
||||
if(device_address != 0) {
|
||||
ALCdevice device = new ALCdevice(device_address);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue