MAINT-3585 FIXED (Crashes when attempting to upload image.)

master
ruslantproductengine 2015-03-30 20:11:27 +03:00
parent f53ce49320
commit befb4449dc
8 changed files with 6 additions and 23 deletions

View File

@ -122,7 +122,6 @@ public:
virtual void gatherInput() = 0;
virtual void delayInputProcessing() = 0;
virtual void swapBuffers() = 0;
virtual void restoreGLContext() = 0;
virtual void bringToFront() = 0;
virtual void focusClient() { }; // this may not have meaning or be required on other platforms, therefore, it's not abstract
virtual void setOldResize(bool oldresize) { };

View File

@ -51,7 +51,3 @@ LLWindowHeadless::~LLWindowHeadless()
void LLWindowHeadless::swapBuffers()
{
}
void LLWindowHeadless::restoreGLContext()
{
}

View File

@ -74,7 +74,6 @@ public:
/*virtual*/ void gatherInput() {};
/*virtual*/ void delayInputProcessing() {};
/*virtual*/ void swapBuffers();
/*virtual*/ void restoreGLContext();
// handy coordinate space conversion routines

View File

@ -1173,6 +1173,8 @@ void LLWindowMacOSX::beforeDialog()
void LLWindowMacOSX::afterDialog()
{
//For fix problem with Core Flow view on OSX
restoreGLContext();
}

View File

@ -87,9 +87,7 @@ public:
/*virtual*/ void gatherInput();
/*virtual*/ void delayInputProcessing() {};
/*virtual*/ void swapBuffers();
/*virtual*/ void restoreGLContext();
// handy coordinate space conversion routines
/*virtual*/ BOOL convertCoords(LLCoordScreen from, LLCoordWindow *to);
/*virtual*/ BOOL convertCoords(LLCoordWindow from, LLCoordScreen *to);
@ -161,7 +159,9 @@ protected:
//Satisfy MAINT-3135 and MAINT-3288 with a flag.
/*virtual */ void setOldResize(bool oldresize) {setResizeMode(oldresize, mGLView); }
private:
void restoreGLContext();
protected:
//

View File

@ -862,9 +862,6 @@ bool LLLocalBitmapMgr::addUnit()
LLFilePicker& picker = LLFilePicker::instance();
if (picker.getMultipleOpenFiles(LLFilePicker::FFLOAD_IMAGE))
{
//For fix problem with Core Flow view on OSX
restoreGLContext();
sTimer.stopTimer();
std::string filename = picker.getFirstFile();

View File

@ -1468,14 +1468,6 @@ void swap()
gDisplaySwapBuffers = TRUE;
}
void restoreGLContext()
{
if(gViewerWindow && gViewerWindow->getWindow())
{
gViewerWindow->getWindow()->restoreGLContext();
}
}
void renderCoordinateAxes()
{
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);

View File

@ -34,8 +34,6 @@ void display_cleanup();
void display(BOOL rebuild = TRUE, F32 zoom_factor = 1.f, int subfield = 0, BOOL for_snapshot = FALSE);
void restoreGLContext();
extern BOOL gDisplaySwapBuffers;
extern BOOL gDepthDirty;
extern BOOL gTeleportDisplay;