Skip to content

Commit 5ea60dd

Browse files
committed
Minor tweaks
1 parent 32fcfd3 commit 5ea60dd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/platforms/rcore_android.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ static int InitGraphicsDevice(void)
854854
}
855855

856856
const EGLint framebufferAttribs[] = {
857-
EGL_RENDERABLE_TYPE, (rlGetVersion() == RL_OPENGL_ES_30)? EGL_OPENGL_ES3_BIT : EGL_OPENGL_ES2_BIT, // Type of context support
857+
EGL_RENDERABLE_TYPE, (rlGetVersion() == RL_OPENGL_ES_30)? EGL_OPENGL_ES3_BIT : EGL_OPENGL_ES2_BIT, // Type of context support
858858
EGL_RED_SIZE, 8, // RED color bit depth (alternative: 5)
859859
EGL_GREEN_SIZE, 8, // GREEN color bit depth (alternative: 6)
860860
EGL_BLUE_SIZE, 8, // BLUE color bit depth (alternative: 5)

src/platforms/rcore_drm.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -898,18 +898,17 @@ int InitPlatform(void)
898898
TRACELOG(LOG_INFO, "DISPLAY: Trying to enable MSAA x4");
899899
}
900900

901-
const EGLint framebufferAttribs[] =
902-
{
903-
EGL_RENDERABLE_TYPE, (rlGetVersion() == RL_OPENGL_ES_30)? EGL_OPENGL_ES3_BIT : EGL_OPENGL_ES2_BIT, // Type of context support
904-
EGL_SURFACE_TYPE, EGL_WINDOW_BIT, // Don't use it on Android!
901+
const EGLint framebufferAttribs[] = {
902+
EGL_RENDERABLE_TYPE, (rlGetVersion() == RL_OPENGL_ES_30)? EGL_OPENGL_ES3_BIT : EGL_OPENGL_ES2_BIT, // Type of context support
903+
EGL_SURFACE_TYPE, EGL_WINDOW_BIT, // Don't use it on Android!
905904
EGL_RED_SIZE, 8, // RED color bit depth (alternative: 5)
906905
EGL_GREEN_SIZE, 8, // GREEN color bit depth (alternative: 6)
907906
EGL_BLUE_SIZE, 8, // BLUE color bit depth (alternative: 5)
908907
EGL_ALPHA_SIZE, 8, // ALPHA bit depth (required for transparent framebuffer)
909908
//EGL_TRANSPARENT_TYPE, EGL_NONE, // Request transparent framebuffer (EGL_TRANSPARENT_RGB does not work on RPI)
910909
EGL_DEPTH_SIZE, 16, // Depth buffer size (Required to use Depth testing!)
911910
//EGL_STENCIL_SIZE, 8, // Stencil buffer size
912-
EGL_SAMPLE_BUFFERS, sampleBuffer, // Activate MSAA
911+
EGL_SAMPLE_BUFFERS, sampleBuffer, // Activate MSAA
913912
EGL_SAMPLES, samples, // 4x Antialiasing if activated (Free on MALI GPUs)
914913
EGL_NONE
915914
};

0 commit comments

Comments
 (0)