more code botching

it's less shitty tho

but still has bugs
This commit is contained in:
Arisotura
2019-05-24 02:04:41 +02:00
parent e5236f0cde
commit 667dee6754
5 changed files with 166 additions and 233 deletions

View File

@ -20,6 +20,7 @@
#include <string.h>
#include "NDS.h"
#include "GPU.h"
#include "Config.h"
#include "OpenGLSupport.h"
#include "GPU3D_OpenGL_shaders.h"
@ -362,10 +363,14 @@ void DeInit()
void Reset()
{
UpdateDisplaySettings();
}
void SetDisplaySettings(int scale, bool antialias)
void UpdateDisplaySettings()
{
int scale = Config::GL_ScaleFactor;
bool antialias = false; //Config::GL_Antialias;
if (antialias) scale *= 2;
ScaleFactor = scale;
@ -950,7 +955,7 @@ u32* GetLine(int line)
}
void SetupAccelFrame()
{
{printf("morp %04X\n", glGetError());
glBindTexture(GL_TEXTURE_2D, FramebufferTex[FrontBuffer]);
}