Skip to content

Instantly share code, notes, and snippets.

@lamianlbe
lamianlbe / CMakeLists.txt
Created May 21, 2018 16:40
Nvidia Linux graphic process limitation
cmake_minimum_required(VERSION 3.9)
project(NVLimit)
set(CMAKE_CXX_STANDARD 11)
link_libraries(EGL pthread X11)
add_executable(NVLimit main.cpp)
@lamianlbe
lamianlbe / GLESExt.cpp
Created March 21, 2018 08:19
eglCreateImageKHR doesn't honor the offset parameter specified in glTexStorageMem2DEXT, the EGLImage always points to the beginning of the memory object
//
// Created by zhangyong on 12/4/17.
//
#include <pthread.h>
#include <EGL/egl.h>
#include <stdio.h>
#include "GLESExt.h"
static PFNGLDEBUGMESSAGECALLBACKKHRPROC _glDebugMessageCallbackKHR;