mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 525106 - Make WebGL compile with UNCODE defined or not-defined by using explicit W annotations on the relevant functions/structs, r=vlad
--HG-- extra : rebase_source : 4a1092dc67cc0f9a2c93cf2564ac5fd1e49a8bc8
This commit is contained in:
parent
08e4323193
commit
698078cb35
@ -143,24 +143,24 @@ nsGLPbufferWGL::Init(WebGLContext *priv)
|
||||
|
||||
mPriv = priv;
|
||||
|
||||
WNDCLASS wc;
|
||||
WNDCLASSW wc;
|
||||
PIXELFORMATDESCRIPTOR pfd;
|
||||
|
||||
if (!GetClassInfo(GetModuleHandle(NULL), "GLEW", &wc)) {
|
||||
if (!GetClassInfoW(GetModuleHandle(NULL), L"GLEW", &wc)) {
|
||||
ZeroMemory(&wc, sizeof(WNDCLASS));
|
||||
wc.hInstance = GetModuleHandle(NULL);
|
||||
wc.lpfnWndProc = DefWindowProc;
|
||||
wc.lpszClassName = "GLEW";
|
||||
wc.lpszClassName = L"GLEW";
|
||||
|
||||
if (!RegisterClass(&wc)) {
|
||||
if (!RegisterClassW(&wc)) {
|
||||
LogMessage("Canvas 3D: RegisterClass failed");
|
||||
return PR_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
// create window
|
||||
mGlewWindow = CreateWindow("GLEW", "GLEW", 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, NULL, NULL, GetModuleHandle(NULL), NULL);
|
||||
mGlewWindow = CreateWindowW(L"GLEW", L"GLEW", 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, NULL, NULL, GetModuleHandle(NULL), NULL);
|
||||
if (!mGlewWindow) {
|
||||
LogMessage("Canvas 3D: CreateWindow failed");
|
||||
return PR_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user