Skip to content

Instantly share code, notes, and snippets.

View thedmd's full-sized avatar
🌧️
I may be slow to respond.

Michał Cichoń thedmd

🌧️
I may be slow to respond.
View GitHub Profile
#pragma once
#include <imgui.h>
namespace ImEx {
struct ScopedDisableItem
{
ScopedDisableItem(bool disable, float disabledAlpha = 0.5f);
~ScopedDisableItem();
@thedmd
thedmd / draw_list_splitter_bug_repro.cpp
Created April 25, 2020 12:15
ImDrawListSplitter::Merge - corrupted data in buffer (64k+ vertices) with 16-bits indices #3129
static bool randomize = false;
static int vtx_count = 64790;
static int map[100000 / 4];
static int rev_map[100000 / 4];
# include <random>
ImDrawList* ShowBackendCheckerWindow(bool* p_open, int* p_vertex_delta)
{
ImDrawList* draw_list = nullptr;