Windows: Cleanup
This commit is contained in:
parent
d9afe6b784
commit
5e012ce2e1
|
@ -269,7 +269,7 @@ jobject getVersion(JNIEnv * env, char *driver)
|
||||||
VS_FIXEDFILEINFO * fxdFileInfo;
|
VS_FIXEDFILEINFO * fxdFileInfo;
|
||||||
|
|
||||||
UINT uiLen = 0;
|
UINT uiLen = 0;
|
||||||
bRetval = VerQueryValue(lpInfoBuff, TEXT("\\"), &fxdFileInfo, &uiLen);
|
bRetval = VerQueryValue(lpInfoBuff, TEXT("\\"), (void *)&fxdFileInfo, &uiLen);
|
||||||
if (bRetval != 0)
|
if (bRetval != 0)
|
||||||
ret = (*env)->NewObject(env, version_class, version_cons, fxdFileInfo->dwProductVersionMS, fxdFileInfo->dwProductVersionLS);
|
ret = (*env)->NewObject(env, version_class, version_cons, fxdFileInfo->dwProductVersionMS, fxdFileInfo->dwProductVersionLS);
|
||||||
}
|
}
|
||||||
|
|
|
@ -128,11 +128,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsPbufferPeerInfo_nCreate
|
||||||
int origin_x = 0; int origin_y = 0;
|
int origin_x = 0; int origin_y = 0;
|
||||||
HWND dummy_hwnd;
|
HWND dummy_hwnd;
|
||||||
HDC dummy_hdc;
|
HDC dummy_hdc;
|
||||||
HGLRC dummy_context;
|
|
||||||
HPBUFFERARB Pbuffer;
|
HPBUFFERARB Pbuffer;
|
||||||
HDC Pbuffer_dc;
|
HDC Pbuffer_dc;
|
||||||
HDC saved_hdc;
|
|
||||||
HGLRC saved_context;
|
|
||||||
WGLExtensions extensions;
|
WGLExtensions extensions;
|
||||||
const int *pBufferAttribs_ptr;
|
const int *pBufferAttribs_ptr;
|
||||||
WindowsPeerInfo *peer_info = (WindowsPeerInfo *)(*env)->GetDirectBufferAddress(env, peer_info_handle);
|
WindowsPeerInfo *peer_info = (WindowsPeerInfo *)(*env)->GetDirectBufferAddress(env, peer_info_handle);
|
||||||
|
|
Loading…
Reference in New Issue