MAINT-3585 FIXED (Crashes when attempting to upload image.)
parent
f53ce49320
commit
befb4449dc
|
|
@ -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) { };
|
||||
|
|
|
|||
|
|
@ -51,7 +51,3 @@ LLWindowHeadless::~LLWindowHeadless()
|
|||
void LLWindowHeadless::swapBuffers()
|
||||
{
|
||||
}
|
||||
|
||||
void LLWindowHeadless::restoreGLContext()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ public:
|
|||
/*virtual*/ void gatherInput() {};
|
||||
/*virtual*/ void delayInputProcessing() {};
|
||||
/*virtual*/ void swapBuffers();
|
||||
/*virtual*/ void restoreGLContext();
|
||||
|
||||
|
||||
// handy coordinate space conversion routines
|
||||
|
|
|
|||
|
|
@ -1173,6 +1173,8 @@ void LLWindowMacOSX::beforeDialog()
|
|||
|
||||
void LLWindowMacOSX::afterDialog()
|
||||
{
|
||||
//For fix problem with Core Flow view on OSX
|
||||
restoreGLContext();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
//
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue