Changeset 12850
- Timestamp:
- 10/26/11 11:34:50 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/vnc/ReaderWriterVNC.cpp
r12292 r12850 90 90 if(i) 91 91 { 92 OSG_ NOTICE<<"Handling "<<i<<" messages"<<std::endl;92 OSG_INFO<<"VNC Handling "<<i<<" messages"<<std::endl; 93 93 94 94 if(!HandleRFBServerMessage(_client)) … … 261 261 osg::Image* image = (osg::Image*)(rfbClientGetClientData(client, 0)); 262 262 263 int width =client->width;264 int height =client->height;265 int depth =client->format.bitsPerPixel;263 int width = client->width; 264 int height = client->height; 265 int depth = client->format.bitsPerPixel; 266 266 267 267 OSG_NOTICE<<"resize "<<width<<", "<<height<<", "<<depth<<" image = "<<image<<std::endl; 268 269 image->allocateImage(width,height,1,GL_RGBA,GL_UNSIGNED_BYTE); 268 PrintPixelFormat(&(client->format)); 269 270 bool swap = client->format.redShift!=0; 271 GLenum gl_pixelFormat = swap ? GL_BGRA : GL_RGBA; 272 273 image->allocateImage(width, height, 1, gl_pixelFormat, GL_UNSIGNED_BYTE); 274 image->setInternalTextureFormat(GL_RGBA); 275 276 270 277 271 278 client->frameBuffer= (uint8_t*)(image->data());
