{"id":1276,"date":"2010-05-22T21:08:22","date_gmt":"2010-05-22T10:08:22","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=1276"},"modified":"2010-05-22T21:08:22","modified_gmt":"2010-05-22T10:08:22","slug":"material-cache-bug","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2010\/05\/22\/material-cache-bug\/","title":{"rendered":"Material cache bug"},"content":{"rendered":"

In the last post, I mentioned a bug in VectorStorm’s new material cache. \u00a0Found the bug today. \u00a0It was kind of nasty; \u00a0compiled OpenGL display lists could change the drawing state without VectorStorm’s knowledge. \u00a0Means I need to flush VectorStorm’s material cache every time we run a compiled OpenGL display list, since that compiled display list could have changed the drawing state without notice.<\/p>\n

OpenGL display lists have been deprecated since at least OpenGL 3.0. \u00a0They still work, but are discouraged. \u00a0Maybe I should remove them from VectorStorm. \u00a0There’s really very little reason to use them instead of VBOs. \u00a0Certainly they’d make the material cache more useful, at least up until I get around to writing a proper material batching system.<\/p>\n","protected":false},"excerpt":{"rendered":"

In the last post, I mentioned a bug in VectorStorm’s new material cache. \u00a0Found the bug today. \u00a0It was kind of nasty; \u00a0compiled OpenGL display lists could change the drawing state without VectorStorm’s knowledge. \u00a0Means I need to flush VectorStorm’s material cache every time we run a compiled OpenGL display list, since that compiled display…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[24,25],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-kA","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1276"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=1276"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1276\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}