From f1f13f5eb63f26fd9da9fd304e5bd16517b4a390 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 12 Apr 2009 22:27:49 +0000 Subject: [PATCH] Fix for E3L4 (and possible others) corrupt sectors. git-svn-id: https://svn.eduke32.com/eduke32@1314 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 5e8469a68..5c506020a 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -2378,6 +2378,9 @@ static void polymer_buffertoplane(GLfloat* buffer, GLushort* indices, in GLfloat vec1[5], vec2[5], norm, r;// BxN[3], NxT[3], TxB[3]; int32_t i; + if (indices && (indicecount < 3)) + return; // corrupt sector (E3L4, I'm looking at you) + i = 0; do {