Commits

Alex Szpakowski  committed 9293d00

Misc. fixes

  • Participants
  • Parent commits 1ddca65

Comments (0)

Files changed (4)

File src/common/config.h

 #if defined(__APPLE__)
 #	define LOVE_MACOSX 1
 #endif
-#if defined(macintosh)
-#	define LOVE_MACOS 1
-#endif
 
 // Endianness.
 #if defined(__i386__) || defined(__i386)

File src/common/runtime.cpp

 	return std::string(str, len);
 }
 
-void luax_pushstring(lua_State *L, std::string str)
+void luax_pushstring(lua_State *L, const std::string &str)
 {
 	lua_pushlstring(L, str.data(), str.size());
 }
 	{"ParticleSystem", GRAPHICS_PARTICLE_SYSTEM_ID},
 	{"SpriteBatch", GRAPHICS_SPRITE_BATCH_ID},
 	{"Canvas", GRAPHICS_CANVAS_ID},
+	{"Shader", GRAPHICS_SHADER_ID},
 
 	// Image
 	{"ImageData", IMAGE_IMAGE_DATA_ID},
 	{"CompressedData", IMAGE_COMPRESSED_DATA_ID},
 
+	// Math
+	{"RandomGenerator", MATH_RANDOM_GENERATOR_ID},
+
 	// Audio
 	{"Source", AUDIO_SOURCE_ID},
 

File src/common/runtime.h

  * @param L The Lua state.
  * @param str The string to push.
  **/
-void luax_pushstring(lua_State *L, std::string str);
+void luax_pushstring(lua_State *L, const std::string &str);
 
 /**
  * Require at least 'min' number of items on the stack.

File src/modules/graphics/opengl/Canvas.cpp

 
 bool Canvas::isHDRSupported()
 {
-	return GLEE_VERSION_3_0 || GLEE_ARB_texture_float;
+	return GLEE_VERSION_3_0 || (isSupported() && GLEE_ARB_texture_float);
 }
 
 bool Canvas::isMultiCanvasSupported()