tiny fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2041 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-01-30 17:45:02 +00:00
parent dd6fe4889d
commit 31cd8ed9d2
3 changed files with 4 additions and 6 deletions

View File

@ -347,7 +347,8 @@ Common::PluginVideo *CPluginManager::GetVideo()
// ------------- // -------------
Common::PluginVideo *CPluginManager::FreeVideo() Common::PluginVideo *CPluginManager::FreeVideo()
{ {
delete m_video; if(m_video)
delete m_video;
m_video = NULL; m_video = NULL;
m_video = (Common::PluginVideo*)LoadPlugin(m_params.m_strVideoPlugin.c_str(), 0); m_video = (Common::PluginVideo*)LoadPlugin(m_params.m_strVideoPlugin.c_str(), 0);
return m_video; return m_video;

View File

@ -157,7 +157,8 @@ void Flush()
GL_REPORT_ERRORD(); GL_REPORT_ERRORD();
// setup the pointers // setup the pointers
g_nativeVertexFmt->SetupVertexPointers(); if(g_nativeVertexFmt)
g_nativeVertexFmt->SetupVertexPointers();
GL_REPORT_ERRORD(); GL_REPORT_ERRORD();
// set the textures // set the textures

View File

@ -196,10 +196,6 @@ void DllConfig(HWND _hParent)
#endif #endif
} }
//////////////////////////////////////////////////////////////////////////////////////////
// Initialize video
// ¯¯¯¯¯¯¯¯¯¯
void Initialize(void *init) void Initialize(void *init)
{ {
// -------------------------------------------------- // --------------------------------------------------