mirror of https://git.wownero.com/dsc/mxe.git
Merge pull request #931 from kolewu/fix-openscenegraph
use better type for pointer cast
This commit is contained in:
commit
eab2c56eb8
|
@ -14,12 +14,12 @@ diff --git a/src/osgPlugins/osgjs/WriteVisitor.cpp b/src/osgPlugins/osgjs/WriteV
|
|||
index 9f2b3c7..98e0c19 100644
|
||||
--- a/src/osgPlugins/osgjs/WriteVisitor.cpp
|
||||
+++ b/src/osgPlugins/osgjs/WriteVisitor.cpp
|
||||
@@ -225,7 +225,7 @@ JSONObject* createImage(osg::Image* image, bool inlineImages, int maxTextureDime
|
||||
@@ -225,8 +225,7 @@ JSONObject* createImage(osg::Image* image, bool inlineImages, int maxTextureDime
|
||||
// no image file so use this inline name image and create a file
|
||||
std::stringstream ss;
|
||||
ss << osgDB::getFilePath(baseName) << osgDB::getNativePathSeparator();
|
||||
- ss << (long int)image << ".inline_conv_generated.png"; // write the pointer location
|
||||
+ ss << (long long int)image << ".inline_conv_generated.png"; // write the pointer location
|
||||
+ ss << (intptr_t)image << ".inline_conv_generated.png"; // write the pointer location
|
||||
std::string filename = ss.str();
|
||||
if (osgDB::writeImageFile(*image, filename)) {
|
||||
image->setFileName(filename);
|
||||
|
|
Loading…
Reference in New Issue