Commit c935eba3 authored by Vinson Lee's avatar Vinson Lee

fp-unpack-01: Fix compile errors with MSVC.

parent a4912491
......@@ -44,6 +44,10 @@
#include "piglit-util.h"
#include "piglit-framework.h"
#if defined(_MSC_VER)
typedef __int32 int32_t;
#endif
/* There are 128 possible values. These values a distributed into 3 color
* components. Ensure that all of the values are seen at least once.
*/
......@@ -104,6 +108,11 @@ static GLint progs[ELEMENTS(types)];
/*@}*/
double round(double x) {
return floor(x + 0.5);
}
void
generate_shader(GLenum type)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment