diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-07 13:47:35 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-07 15:31:49 +0100 |
commit | 51bbf779ba2c9d5954e2c9470a8eae7c1ddd38a5 (patch) | |
tree | f2b52f0211f9052fefa64e23c6a0d81305391589 /shaders/frag.frag | |
parent | 7562d7b539d8013376de2cff494231ba307f4ee1 (diff) |
Switch from using (E)GL to wl_shm.
eglInitialize() is slow (~50-100ms), and uses a fair amount of memory
(~100 MB). For such a small, simple program that just wants to launch as
quickly as possible, wl_shm performs better.
Diffstat (limited to 'shaders/frag.frag')
-rw-r--r-- | shaders/frag.frag | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/shaders/frag.frag b/shaders/frag.frag deleted file mode 100644 index 88d2337..0000000 --- a/shaders/frag.frag +++ /dev/null @@ -1,23 +0,0 @@ -#version 100 - -/* - * Copyright (C) 2021 Philip Jones - * - * Licensed under the MIT License. - * See either the LICENSE file, or: - * - * https://opensource.org/licenses/MIT - * - * I don't think you can really copyright this shader though :) - */ - -precision lowp float; - -varying vec2 Texcoord; - -uniform sampler2D tex; - -void main() -{ - gl_FragColor = texture2D(tex, Texcoord); -} |