Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am acomminos on github.
  • I am acomminos (https://keybase.io/acomminos) on keybase.
  • I have a public key whose fingerprint is B1A6 F58A ED80 18A7 F33B CAD3 D366 F908 1D64 833A

To claim this, I am signing this object:

diff --git a/dlls/wined3d/buffer_heap.c b/dlls/wined3d/buffer_heap.c
index 80670c515f..ca94df3f3a 100644
--- a/dlls/wined3d/buffer_heap.c
+++ b/dlls/wined3d/buffer_heap.c
@@ -157,7 +157,7 @@ HRESULT wined3d_buffer_heap_create(struct wined3d_context *context, GLsizeiptr s
return E_OUTOFMEMORY;
}
- access_flags = GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT | GL_MAP_WRITE_BIT;
+ access_flags = GL_MAP_PERSISTENT_BIT | GL_MAP_WRITE_BIT;
#version 130
uniform float opacity;
uniform bool invert_color;
uniform sampler2D tex;
const float cornerRadius = 10.0;
void main() {
vec4 c = texture2D(tex, gl_TexCoord[0].xy);
@acomminos
acomminos / gist:fc756269e6f1224c1466
Created September 11, 2014 02:30
smi2021 patch for kernel 3.16
diff --git a/kernel/smi2021.h b/kernel/smi2021.h
index bd642dd..0436f8b 100644
--- a/kernel/smi2021.h
+++ b/kernel/smi2021.h
@@ -42,17 +42,17 @@
#include <linux/spinlock_types.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <media/v4l2-event.h>
@acomminos
acomminos / riemann.hs
Created January 17, 2014 02:55
Haskell Riemann Sums
data RiemannType = LeftSum | RightSum | MidSum
riemann :: RiemannType -> (Float -> Float) -> Float -> Float -> Float -> Float
riemann rt f a b n = dx * foldr (\l -> \r -> (f $ a + (l * dx)) + r) 0 range
where
range = case rt of
LeftSum -> [0..n-1]
RightSum -> [1..n]
MidSum -> [0.5..n-0.5]
dx = (b-a)/n