Changed: #825 Remove all warnings when compiling Ryzom
This commit is contained in:
parent
9c9f1097f8
commit
703ba174a2
3 changed files with 5 additions and 5 deletions
|
@ -117,13 +117,13 @@ class COcclusionQueryGL;
|
||||||
|
|
||||||
bool GlWndProc(CDriverGL *driver, HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
bool GlWndProc(CDriverGL *driver, HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
typedef HCURSOR nlCursor;
|
typedef HCURSOR nlCursor;
|
||||||
#define EmptyCursor NULL
|
#define EmptyCursor (nlCursor)NULL
|
||||||
|
|
||||||
#elif defined (NL_OS_MAC)
|
#elif defined (NL_OS_MAC)
|
||||||
|
|
||||||
bool GlWndProc(CDriverGL *driver, const void* e);
|
bool GlWndProc(CDriverGL *driver, const void* e);
|
||||||
typedef void* nlCursor;
|
typedef void* nlCursor;
|
||||||
#define EmptyCursor NULL
|
#define EmptyCursor (nlCursor)NULL
|
||||||
|
|
||||||
#elif defined (NL_OS_UNIX)
|
#elif defined (NL_OS_UNIX)
|
||||||
|
|
||||||
|
|
|
@ -407,7 +407,7 @@ nlCursor CDriverGL::buildCursor(const CBitmap &src, NLMISC::CRGBA col, uint8 rot
|
||||||
}
|
}
|
||||||
|
|
||||||
// create a cursor from bitmap
|
// create a cursor from bitmap
|
||||||
nlCursor result = NULL;
|
nlCursor result = EmptyCursor;
|
||||||
convertBitmapToCursor(rotSrc, result, mouseW, mouseH, _ColorDepth == ColorDepth16 ? 16:32, col, hotSpotX, hotSpotY);
|
convertBitmapToCursor(rotSrc, result, mouseW, mouseH, _ColorDepth == ColorDepth16 ? 16:32, col, hotSpotX, hotSpotY);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -251,8 +251,8 @@ bool CDriverGL::setupMaterial(CMaterial& mat)
|
||||||
{
|
{
|
||||||
H_AUTO_OGL(CDriverGL_setupMaterial)
|
H_AUTO_OGL(CDriverGL_setupMaterial)
|
||||||
CShaderGL* pShader;
|
CShaderGL* pShader;
|
||||||
GLenum glenum;
|
GLenum glenum = GL_ZERO;
|
||||||
uint32 touched=mat.getTouched();
|
uint32 touched = mat.getTouched();
|
||||||
uint stage;
|
uint stage;
|
||||||
|
|
||||||
// profile.
|
// profile.
|
||||||
|
|
Loading…
Reference in a new issue