Skip to content

Instantly share code, notes, and snippets.

View hypevhs's full-sized avatar

hypevhs

View GitHub Profile
QGLShader::compile(Fragment): 0:5(38): error: `iNormalWorld' undeclared
0:5(38): error: no matching function for call to `normalize(error)'; candidates are:
0:5(38): error: float normalize(float)
0:5(38): error: vec2 normalize(vec2)
0:5(38): error: vec3 normalize(vec3)
0:5(38): error: vec4 normalize(vec4)
0:8(14): error: `diffuseLight' undeclared
0:8(38): error: operands to arithmetic operators must be numeric
@hypevhs
hypevhs / jvr-bug-audioreset
Created January 13, 2015 03:37
JanusVR Linux Audio on Reset
Game::LoadBookmarks() - Loaded 17 bookmarks.
Game::LoadWorkspaces() - Loaded 4 workspace paths.
RiftRenderer() - Did not initialize, creating a debug version instead
Anisotropic filtering supported. Filtering set to x 16
MultiPlayerManager::DoSocketConnect() - trying "babylon.vrsites.com" 5566 ...
MumbleManager::initMumble() - shmfd pointer returned from shm_open < 0
Janus VR version: "34.1" Version online: "34.1" WebKit version: "538.1"
void MultiPlayerManager::SocketConnected()
Error: "GStreamer encountered a general stream error."
Error: "GStreamer encountered a general stream error."
@hypevhs
hypevhs / jvr-bug-shader
Created January 2, 2015 22:05
JanusVR Linux QGL shader bug
QIODevice::read: device not open
QGLShader::compile(Fragment): 0:144(29): error: could not implicitly convert operands to arithmetic operator
0:144(37): error: operands to arithmetic operators must be numeric
0:144(37): error: no matching function for call to `sin(error)'; candidates are:
0:144(37): error: float sin(float)
0:144(37): error: float sin(float)
0:144(37): error: vec2 sin(vec2)
0:144(37): error: vec3 sin(vec3)
0:144(37): error: vec4 sin(vec4)
0:144(42): error: operands to arithmetic operators must be numeric
@hypevhs
hypevhs / call.S
Last active August 29, 2015 14:10
calling C from assembly (64 bit)
.section .data
prompt: .asciz "Please input a number:\n"
format: .asciz "%d"
output: .asciz "The largest value is %d\n"
debug: .asciz "You gave me : '%d'!\n"
.section .text
.globl main
main:
movq $prompt, %rdi
movq $0, %rax