fix compiling without JIT
This commit is contained in:
parent
317b91533b
commit
c4f7c1bff7
|
@ -536,9 +536,14 @@ void EmuSettingsDialog::on_btnDSiSDFolderBrowse_clicked()
|
|||
void EmuSettingsDialog::on_chkEnableJIT_toggled()
|
||||
{
|
||||
bool disabled = !ui->chkEnableJIT->isChecked();
|
||||
#ifdef JIT_ENABLED
|
||||
bool fastmemSupported = ARMJIT_Memory::IsFastMemSupported();
|
||||
#else
|
||||
bool fastmemSupported = false;
|
||||
#endif
|
||||
ui->chkJITBranchOptimisations->setDisabled(disabled);
|
||||
ui->chkJITLiteralOptimisations->setDisabled(disabled);
|
||||
ui->chkJITFastMemory->setDisabled(disabled || !ARMJIT_Memory::IsFastMemSupported());
|
||||
ui->chkJITFastMemory->setDisabled(disabled || !fastmemSupported);
|
||||
ui->spnJITMaximumBlockSize->setDisabled(disabled);
|
||||
|
||||
on_cbGdbEnabled_toggled();
|
||||
|
|
|
@ -857,7 +857,7 @@ void MainWindow::createScreenPanel()
|
|||
// Check that creating the context hasn't failed
|
||||
if (panelGL->createContext() == false)
|
||||
{
|
||||
Log(LogLevel::Error, "Failed to create OpenGL context, falling back to Software Renderer.\n");
|
||||
Log(Platform::LogLevel::Error, "Failed to create OpenGL context, falling back to Software Renderer.\n");
|
||||
hasOGL = false;
|
||||
|
||||
globalCfg.SetBool("Screen.UseGL", false);
|
||||
|
|
Loading…
Reference in New Issue