From Andre Garneau, minor warning fixes
This commit is contained in:
parent
8779813837
commit
bdc8a72aae
@ -89,6 +89,7 @@ INCLUDE_DIRECTORIES(
|
||||
|
||||
IF(WIN32)
|
||||
ADD_DEFINITIONS(-D_SCL_SECURE_NO_WARNINGS)
|
||||
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
|
||||
#needed for net plugin
|
||||
SET (OSG_SOCKET_LIBS wsock32.lib)
|
||||
# Both Cygwin and Msys need -DNOMINMAX ???
|
||||
|
@ -157,7 +157,7 @@ Font::Font(FontImplementation* implementation):
|
||||
char *ptr;
|
||||
if( (ptr = getenv("OSG_MAX_TEXTURE_SIZE")) != 0)
|
||||
{
|
||||
GLint osg_max_size = atoi(ptr);
|
||||
unsigned int osg_max_size = atoi(ptr);
|
||||
|
||||
if (osg_max_size<_textureWidthHint) _textureWidthHint = osg_max_size;
|
||||
if (osg_max_size<_textureHeightHint) _textureHeightHint = osg_max_size;
|
||||
@ -236,7 +236,7 @@ void Font::setTextureSizeHint(unsigned int width,unsigned int height)
|
||||
char *ptr;
|
||||
if( (ptr = getenv("OSG_MAX_TEXTURE_SIZE")) != 0)
|
||||
{
|
||||
GLint osg_max_size = atoi(ptr);
|
||||
unsigned int osg_max_size = atoi(ptr);
|
||||
|
||||
if (osg_max_size<_textureWidthHint) _textureWidthHint = osg_max_size;
|
||||
if (osg_max_size<_textureHeightHint) _textureHeightHint = osg_max_size;
|
||||
|
Loading…
Reference in New Issue
Block a user