LWJGL Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: Application throws a fatal error when trying to render a rectangle  (Read 336 times)

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1786

The offsets match the order of the public final long fields in the GLCapabilities class. For example:

Code: [Select]
19: glAccum (the first function)
...
719: glGetString

719 - 19 = 700, glGetString's offset

So, when you see a crash at address X, you calculate: X / POINTER_SIZE + 19 and look up the function at that line. The pointer size is 8 on x64, 4 on x86.
Logged
Pages: 1 [2]