mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
fixed glBitmap, as reported by christophe choquet
This commit is contained in:
parent
d3f675581f
commit
cf1f74660c
1 changed files with 1 additions and 1 deletions
|
|
@ -739,7 +739,7 @@ public final class GL11 {
|
|||
public static native void glCallList(int list);
|
||||
public static native void glBlendFunc(int sfactor, int dfactor);
|
||||
public static void glBitmap(int width, int height, float xorig, float yorig, float xmove, float ymove, ByteBuffer bitmap) {
|
||||
if (bitmap.remaining() < width * height) {
|
||||
if (bitmap.remaining() < ((width+7)/8) * height) {
|
||||
throw new BufferUnderflowException();
|
||||
}
|
||||
nglBitmap(width, height, xorig, yorig, xmove, ymove, bitmap, bitmap.position());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue