Merge pull request #321 from Azaezel/alpha40_miscCleanups26Sep2020

minor cleanups:
This commit is contained in:
Brian Roberts 2020-09-27 12:17:12 -05:00 committed by GitHub
commit 76c5e30869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -185,8 +185,6 @@ bool GFXGLTextureObject::copyToBmp(GBitmap * bmp)
U8* orig = (U8*)mem.alloc(srcPixelCount * srcBytesPerPixel);
glGetTexImage(mBinding, mip, GFXGLTextureFormat[mFormat], GFXGLTextureType[mFormat], orig);
PROFILE_START(GFXGLTextureObject_copyToBmp_pixCopy);
if (mFormat == GFXFormatR16G16B16A16F)
{
dMemcpy(dest, orig, srcPixelCount * srcBytesPerPixel);
@ -207,7 +205,6 @@ bool GFXGLTextureObject::copyToBmp(GBitmap * bmp)
}
}
glBindTexture(mBinding, NULL);
PROFILE_END();
return true;
}

View file

@ -164,7 +164,7 @@ public:
void addRow(const char* label, const char* bitmapName, const char* callback, S32 icon, S32 yPad, bool enabled, const char* tooltip);
//Removes row at the provided index
void GuiGameListMenuCtrl::removeRow(const S32& row);
void removeRow(const S32& row);
/// Gets the text for the currently selected option of the given row.
///