Skip to content

Commit c83283b

Browse files
committed
Remove incorrect glEnable calls and update emulator Readmes
1 parent 90d9bda commit c83283b

5 files changed

Lines changed: 9 additions & 12 deletions

File tree

DesktopEmulator/ControlsEditor/OpenGL2DContext.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ void OpenGL2DContext::CreateOpenGLWindow()
200200
// any render clipping is no longer necessary
201201
glDisable( GL_SCISSOR_TEST );
202202

203-
// enable textures
204-
glEnable( GL_TEXTURE_2D );
205-
206203
LOG( "Finished creating OpenGL window" );
207204
}
208205

DesktopEmulator/Data/Readme (Spanish).txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ Cómo usar tarjetas de memoria
136136

137137
Cómo usar savestates
138138

139-
Los savestates te permiten guardar todo el estado de la
140-
consola durante el juego en cualquier momento, y luego
139+
Los savestates (estados) te permiten guardar el estado de
140+
la consola durante el juego en cualquier momento, y luego
141141
cargarlo más tarde. Así puedes continuar jugando después,
142142
incluso en juegos que no permiten guardar la partida.
143143

@@ -146,7 +146,7 @@ Cómo usar savestates
146146
¡Ten cuidado de usar la ranura correcta cuando cargas o
147147
guardas estado, pues estas acciones no se pueden deshacer!
148148

149-
Ten en cuenta que los savestads no guardan el contenido de
149+
Ten en cuenta que los estados no guardan el contenido de
150150
la pantalla, que en Vircon32 es persistente. Esto es así a
151151
propósito para reducir tamaño y complejidad de los estados.
152152
Casi todos los juegos redibujan la pantalla cada frame,
@@ -159,6 +159,9 @@ Cómo usar savestates
159159
Novedades en la versión 24.8.30
160160

161161
- Añadido soporte para savestates (guardar estado).
162+
- Corregido error en permisos de subcarpetas en Linux y Mac
163+
que impedían al emulador guardar capturas de pantalla.
164+
- Mejorados los logs en acciones de ventana.
162165

163166
------------------------------------------------------------
164167

DesktopEmulator/Data/Readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ How to use savestates
153153
What's new in version 24.8.30?
154154

155155
- Added support for savestates.
156+
- Fixed bad subfolder permissions under Linux and Mac that
157+
prevented the emulator from saving screenshots.
158+
- Improved logs on window actions.
156159

157160
------------------------------------------------------------
158161

DesktopEmulator/Emulator/GUI.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,6 @@ bool GUIMustBeDrawn()
12381238
void ShowEmulatorWindow()
12391239
{
12401240
glEnable( GL_BLEND );
1241-
glEnable( GL_TEXTURE_2D );
12421241

12431242
// to do the actual drawing on the screen
12441243
// correctly we have to temporarily

DesktopEmulator/Emulator/VideoOutput.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,6 @@ void VideoOutput::CreateOpenGLWindow()
276276
// any render clipping is no longer necessary
277277
glDisable( GL_SCISSOR_TEST );
278278

279-
// enable textures
280-
glEnable( GL_TEXTURE_2D );
281-
282279
LOG( "Finished creating OpenGL window" );
283280
}
284281

@@ -496,7 +493,6 @@ void VideoOutput::InitRendering()
496493
// bind our textures to GPU's texture unit 0
497494
glActiveTexture( GL_TEXTURE0 );
498495
glBindTexture( GL_TEXTURE_2D, 0 ); // set no texture until we load one
499-
glEnable( GL_TEXTURE_2D );
500496

501497
// initialize our multiply color to neutral
502498
SetMultiplyColor( GPUColor{ 255, 255, 255, 255 } );
@@ -1002,7 +998,6 @@ void VideoOutput::SelectTexture( int GPUTextureID )
1002998
OpenGLTextureID = &CartridgeTextureIDs[ GPUTextureID ];
1003999

10041000
glBindTexture( GL_TEXTURE_2D, *OpenGLTextureID );
1005-
glEnable( GL_TEXTURE_2D );
10061001
}
10071002

10081003
// -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)